Home
last modified time | relevance | path

Searched refs:Format (Results 1 – 25 of 56) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dold_instruction.h62 Format format = GetFormat(GetOpcode()); in GetId()
63 if (format == Format::ID16) { in GetId()
66 if (format == Format::ID32) { in GetId()
69 if (format == Format::PREF_ID16_IMM16_IMM16_V8_V8) { in GetId()
72 if (format == Format::PREF_ID16_IMM16_V8) { in GetId()
75 if (format == Format::PREF_ID32) { in GetId()
78 if (format == Format::PREF_ID32_IMM8) { in GetId()
81 if (format == Format::PREF_ID32_V8) { in GetId()
84 if (format == Format::V4_IMM4_ID16) { in GetId()
87 if (format == Format::V4_V4_ID16) { in GetId()
[all …]
/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp34 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST()
35 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST()
42 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST()
43 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST()
51 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
58 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST()
66 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
67 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
74 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST()
75 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
[all …]
/arkcompiler/runtime_core/docs/
Dfile_format.md1 # Panda Binary File Format
88 Format:
90 | Name | Format | Description |
99 Format:
101 | Name | Format | Description |
204 Format:
206 | Name | Format | Description |
231 Format:
233 | Name | Format | Description |
261 Format:
[all …]
Dpanda-runtime.md24 * [File Format](file_format.md)
25 * [IR Format](ir_format.md)
26 * [IR Snapshot Format](dump_format.md)
/arkcompiler/runtime_core/libpandabase/tests/
Dstring_helpers_test.cpp27 TEST(StringHelpers, Format) in TEST() argument
29 EXPECT_EQ(Format("abc"), "abc"); in TEST()
30 EXPECT_EQ(Format("%s %d %c", "a", 10, 0x31), "a 10 1"); in TEST()
39 EXPECT_EQ(Format("%10003s", "abc"), ss.str()); in TEST()
Dlogger_test.cpp65 std::string res = helpers::string::Format(
149 std::string res = helpers::string::Format("[TID %06x] E/compiler: c\n", tid);
168 std::string res = helpers::string::Format(
191 std::string res = helpers::string::Format("[TID %06x] E/common: c\n", tid);
236 std::string res = helpers::string::Format(
249 std::string log_filename = helpers::string::Format("/tmp/gtest_panda_logger_file_%06x", tid);
266 std::string res = helpers::string::Format(
298 std::string res = helpers::string::Format(
324 std::string res = helpers::string::Format("[TID %06x] I/common: a\n", tid);
346 std::string res = helpers::string::Format(
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_instruction-inl_gen.h.erb18 constexpr bool BytecodeInst<Mode>::HasId(Format format, size_t idx) {
24 case Format::<%= fmt.pretty.upcase %>:
37 constexpr bool BytecodeInst<Mode>::HasVReg(Format format, size_t idx) {
43 case Format::<%= fmt.pretty.upcase %>:
56 constexpr bool BytecodeInst<Mode>::HasImm(Format format, size_t idx) {
62 case Format::<%= fmt.pretty.upcase %>:
75 constexpr size_t BytecodeInst<Mode>::Size(Format format) { // NOLINTNEXTLINE(readability-function-…
78 case Format::<%= fmt.pretty.upcase %>: {
89 template <typename BytecodeInst<Mode>::Format format, size_t idx /* = 0 */>
104 if (format == Format::<%= fmt.pretty.upcase %>) {
[all …]
Dbytecode_emitter_gen.h.erb18 template <Format format, typename It, typename... Types>
31 if constexpr (format == Format::<%= fmt.pretty.upcase %>) {
48 % FORMAT_TYPE = 'BytecodeInstruction::Format'
125 template <Format format, typename OffsT>
134 if constexpr (format == Format::<%= fmt.pretty.upcase %>) {
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction.h242 template <Format format, size_t idx = 0>
245 template <Format format, size_t idx = 0>
248 template <Format format, size_t idx = 0>
315 template <Format format>
370 Format GetFormat() const;
390 static constexpr bool HasId(Format format, size_t idx);
392 static constexpr bool HasVReg(Format format, size_t idx);
394 static constexpr bool HasImm(Format format, size_t idx);
396 static constexpr Format GetFormat(Opcode opcode);
398 static constexpr size_t Size(Format format);
Dbytecode_emitter.cpp25 using Format = BytecodeInstruction::Format; typedef
120 template <Format format, typename It, typename... Types>
213 Emit<Format::IMM32>(bytecode_.begin() + *target_ptr, Opcode::JMP_IMM32, 0); in DoReserveSpaceForOffset()
216 Emit<BytecodeInstruction::Format::PREF_NONE>(bytecode_.begin() + insn_pc, upd_op); in DoReserveSpaceForOffset()
218 Emit<BytecodeInstruction::Format::NONE>(bytecode_.begin() + insn_pc, upd_op); in DoReserveSpaceForOffset()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DramdaToolsNoInfinite2.ts219 import { Format } from "Iteration/Format";
231 'all': Format<IterationMap[KnownIterationMapKeys], 's'>;
232 '+': Format<IterationMap[PositiveIterationKeys], 's'>;
233 '-': Format<IterationMap[NegativeIterationKeys], 's'>;
234 '0': Format<IterationMap['0'], 's'>;
237 'all': Format<IterationMap[KnownIterationMapKeys], 'n'>;
238 '+': Format<IterationMap[PositiveIterationKeys], 'n'>;
239 '-': Format<IterationMap[NegativeIterationKeys], 'n'>;
240 '0': Format<IterationMap['0'], 'n'>;
271 export type Format<I extends Iteration, fmt extends Formats> = { alias
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Djson_builder.cpp22 using panda::helpers::string::Format;
63 os << Format("u%04X", *iter); // NOLINT(cppcoreguidelines-pro-type-vararg) in JsonEscape()
/arkcompiler/ets_frontend/es2panda/ir/
Dirnode.h77 class Format {
79 constexpr Format(const FormatItem *item, size_t size) : item_(item), size_(size) {} in Format() function
91 using Formats = panda::Span<const Format>;
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp416 … (bcIns.GetId <BytecodeInstruction::Format::IMM8_ID16_ID16_IMM16_V8, 0>()).AsRawValue()); in CollectMethodInfoFromBC()
423 … (bcIns.GetId <BytecodeInstruction::Format::IMM8_ID16_ID16_IMM16_V8, 1>()).AsRawValue()); in CollectMethodInfoFromBC()
429 … (bcIns.GetId <BytecodeInstruction::Format::IMM16_ID16_ID16_IMM16_V8, 0>()).AsRawValue()); in CollectMethodInfoFromBC()
436 … (bcIns.GetId <BytecodeInstruction::Format::IMM16_ID16_ID16_IMM16_V8, 1>()).AsRawValue()); in CollectMethodInfoFromBC()
448 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
460 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
465 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8>(); in CollectMethodInfoFromBC()
470 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8_ID16>(); in CollectMethodInfoFromBC()
475 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
480 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16_ID16>(); in CollectMethodInfoFromBC()
[all …]
/arkcompiler/runtime_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb26 const BytecodeInstruction::Format format = bc_ins.GetFormat();
33 case BytecodeInstruction::Format::<%=i.format.pretty.upcase%>:
38 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pre…
40 …ins.imms.push_back(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=imm_…
Dget_ins_info.cpp.erb42 BytecodeInstruction::Format format = bc_ins.GetFormat();
46 case BytecodeInstruction::Format::<%= fmt.pretty.upcase %>:
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_list_format.h31 static JSTaggedValue Format(EcmaRuntimeCallInfo *argv);
Dbuiltins_relative_time_format.h42 static JSTaggedValue Format(EcmaRuntimeCallInfo *argv);
Dbuiltins_number_format.h31 static JSTaggedValue Format(EcmaRuntimeCallInfo *argv);
Dbuiltins_date_time_format.h32 static JSTaggedValue Format(EcmaRuntimeCallInfo *argv);
Dbuiltins_relative_time_format.cpp89 JSTaggedValue BuiltinsRelativeTimeFormat::Format(EcmaRuntimeCallInfo *argv) in Format() function in panda::ecmascript::builtins::BuiltinsRelativeTimeFormat
92 BUILTINS_API_TRACE(thread, RelativeTimeFormat, Format); in Format()
117 JSHandle<EcmaString> result = JSRelativeTimeFormat::Format(thread, x, unit, relativeTimeFormat); in Format()
/arkcompiler/runtime_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb33 template <BytecodeInstruction::Format format, typename It, typename... Types>
45 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) {
92 template <BytecodeInstruction::Format format, typename It, typename... Types>
112 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) {
141 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) {
160 % FORMAT_TYPE = 'BytecodeInstruction::Format'
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_relative_time_format_test.cpp129 JSTaggedValue result = BuiltinsRelativeTimeFormat::Format(ecmaRuntimeCallInfo); in HWTEST_F_L0()
154 JSTaggedValue result = BuiltinsRelativeTimeFormat::Format(ecmaRuntimeCallInfo); in HWTEST_F_L0()
179 JSTaggedValue result = BuiltinsRelativeTimeFormat::Format(ecmaRuntimeCallInfo); in HWTEST_F_L0()
204 JSTaggedValue result = BuiltinsRelativeTimeFormat::Format(ecmaRuntimeCallInfo); in HWTEST_F_L0()
229 JSTaggedValue result = BuiltinsRelativeTimeFormat::Format(ecmaRuntimeCallInfo); in HWTEST_F_L0()
/arkcompiler/ets_frontend/ts2panda/src/
DregAllocator.ts22 Format,
68 getNumOfInvalidVregs(operands: OperandType[], format: Format): number {
80 …doRealAdjustment(operands: OperandType[], format: Format, index: number, irNodes: IRNode[]): void {
/arkcompiler/ets_frontend/es2panda/compiler/templates/
Dformats.h.erb72 constexpr std::array<const Format, 0> <%= get_format_name(mnemonic) %> = {{}};
74 constexpr std::array<const Format, <%= formats.length %>> <%= get_format_name(mnemonic) %> = {{

123