| /arkcompiler/runtime_core/static_core/verification/absint/ |
| D | abs_int_inl.h | 305 template <BytecodeInstructionSafe::Format FORMAT> 310 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMov() 311 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMov() 320 MoveToNextInst<FORMAT>(); in HandleMov() 324 template <BytecodeInstructionSafe::Format FORMAT> 329 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovWide() 330 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovWide() 339 MoveToNextInst<FORMAT>(); in HandleMovWide() 343 template <BytecodeInstructionSafe::Format FORMAT> 348 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovObj() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/ |
| D | interpreter-inl.h | 77 template <BytecodeInstruction::Format FORMAT, class InstructionHandler> 81 return instrHandler->GetInst().template GetImm<FORMAT, 0>() + 1; in GetNumberActualArgsDyn() 84 template <BytecodeInstruction::Format FORMAT, class InstructionHandler> 107 template <BytecodeInstruction::Format FORMAT> 111 this->template MoveToNextInst<FORMAT, false>(); in HandleNop() 114 template <BytecodeInstruction::Format FORMAT> 117 auto imm = bit_cast<double>(this->GetInst().template GetImm<FORMAT>()); in HandleFldaiDyn() 120 this->template MoveToNextInst<FORMAT, false>(); in HandleFldaiDyn() 123 template <BytecodeInstruction::Format FORMAT> 126 int32_t imm = this->GetInst().template GetImm<FORMAT>(); in HandleLdaiDyn() [all …]
|
| D | vregister_iterator.h | 20 template <BytecodeInstruction::Format FORMAT> 28 if constexpr (BytecodeInstruction::IsVregArgsShort(FORMAT)) { in GetVRegIdx() 31 return instn_.GetVReg<FORMAT, 0>(); in GetVRegIdx() 34 return instn_.GetVReg<FORMAT, 1>(); in GetVRegIdx() 39 } else if constexpr (BytecodeInstruction::IsVregArgs(FORMAT)) { in GetVRegIdx() 42 return instn_.GetVReg<FORMAT, 0U>(); in GetVRegIdx() 45 return instn_.GetVReg<FORMAT, 1U>(); in GetVRegIdx() 48 return instn_.GetVReg<FORMAT, 2U>(); in GetVRegIdx() 51 return instn_.GetVReg<FORMAT, 3U>(); in GetVRegIdx() 56 } else if constexpr (BytecodeInstruction::IsVregArgsRange(FORMAT)) { in GetVRegIdx() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | ecma_isa.yaml | 37 format: [pref_op_none] 41 format: [pref_op_none] 45 format: [pref_op_none] 49 format: [pref_op_none] 53 format: [pref_op_none] 57 format: [pref_op_none] 61 format: [pref_op_none] 65 format: [pref_op_none] 69 format: [pref_op_none] 73 format: [pref_op_none] [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/ |
| D | old_instruction.h | 62 Format format = GetFormat(GetOpcode()); in GetId() local 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/isa/ |
| D | isa.yaml | 108 # File format and ISA versioning 303 format: [op_none] 307 format: [op_none] 311 format: [op_none] 315 format: [op_none] 319 format: [op_none] 323 format: [op_none] 327 format: [op_none] 331 format: [op_none] 335 format: [op_none] [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 20 constexpr bool BytecodeInst<MODE>::HasId(Format format, size_t idx) { 21 switch (format) { 23 % fmt = i.format 26 case Format::<%= fmt.pretty.upcase %>: 39 constexpr bool BytecodeInst<MODE>::HasVReg(Format format, size_t idx) { 40 switch (format) { 42 % fmt = i.format 45 case Format::<%= fmt.pretty.upcase %>: 58 constexpr bool BytecodeInst<MODE>::HasImm(Format format, size_t idx) { 59 switch (format) { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
| D | interpreter-inl.h | 42 template <BytecodeInstruction::Format FORMAT> 45 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLaunchShort() 46 LOG_INST() << "launch.short v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunchShort() 47 … << this->GetInst().template GetVReg<FORMAT, 1>() << ", " << std::hex << "0x" << id; in HandleEtsLaunchShort() 48 HandleLaunch<FORMAT, false>(id); in HandleEtsLaunchShort() 51 template <BytecodeInstruction::Format FORMAT> 54 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLaunch() 55 LOG_INST() << "launch v" << this->GetInst().template GetVReg<FORMAT, 0>() << ", v" in HandleEtsLaunch() 56 << this->GetInst().template GetVReg<FORMAT, 1>() << ", v" in HandleEtsLaunch() 57 << this->GetInst().template GetVReg<FORMAT, 2>() << ", v" in HandleEtsLaunch() [all …]
|
| /arkcompiler/runtime_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 18 constexpr bool BytecodeInst<Mode>::HasId(Format format, size_t idx) { 19 switch (format) { 21 % fmt = i.format 24 case Format::<%= fmt.pretty.upcase %>: 37 constexpr bool BytecodeInst<Mode>::HasVReg(Format format, size_t idx) { 38 switch (format) { 40 % fmt = i.format 43 case Format::<%= fmt.pretty.upcase %>: 56 constexpr bool BytecodeInst<Mode>::HasImm(Format format, size_t idx) { 57 switch (format) { [all …]
|
| /arkcompiler/runtime_core/static_core/isa/ |
| D | isa.yaml | 108 # File format and ISA versioning 282 format: [op_none] 296 format: [op_v1_4_v2_4, op_v1_8_v2_8, op_v1_16_v2_16] 300 format: [op_v1_4_v2_4, op_v1_16_v2_16] 304 format: [op_v1_4_v2_4, op_v1_8_v2_8, op_v1_16_v2_16] 319 format: [op_v_4_imm_4, op_v_8_imm_8, op_v_8_imm_16, op_v_8_imm_32] 323 format: [op_v_8_imm_64] 328 format: [pref_op_v_8_imm_32] 333 format: [op_v_8_imm_64] 348 format: [op_v_8] [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 36 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST() 37 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST() 44 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST() 45 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST() 53 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 60 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST() 68 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 69 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 76 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST() 77 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 34 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() 54 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 61 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST() 69 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 70 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 77 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST() 78 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() [all …]
|
| D | bytecode_imm_fetch_tests.cpp | 33 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x17… in TEST() 34 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0, true>()), in TEST() 43 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(-22)); in TEST() 44 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0, true>()), static_cast<int8_t>(-22)); in TEST() 52 EXPECT_EQ(inst.GetFormat(), BytecodeInstruction::Format::IMM32); in TEST() 53 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0>()), static_cast<int32_t>(0x1e)); in TEST() 54 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0, true>()), static_cast<int32_t>(0x1e)… in TEST() 62 … EXPECT_EQ((bit_cast<double>(inst.GetImm<BytecodeInstruction::Format::IMM64, 0, true>())), 3.14); in TEST() 73 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x8e… in TEST() 74 …EXPECT_NE((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<uint8_t>(0x8… in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | file_format.md | 1 # Panda Binary File Format 3 This document describes Panda binary file format with the following goals in mind: 16 Current binary file format should extend these limits to conform to the modern requirements. 21 The format uses [TaggedValue](#taggedvalue) which allows to store only information we have and 30 Binary file format should support fast access to information. It means that 31 redundant references should be avoided. Also, if it possible, binary file format should avoid data 32 indexes (like sorted list of strings). However, the described binary format supports one index: 59 To support this feature, the described binary file format uses offsets and doesn't specify how 64 The binary file format supports future changes via version number. 68 Any tool which supports format version `N` must support format version `N - 1` too. [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | file_format.md | 1 # Panda Binary File Format 3 This document describes Panda binary file format with the following goals in mind: 16 Current binary file format should extend these limits to conform to the modern requirements. 21 The format uses [TaggedValue](#taggedvalue) which allows to store only information we have and 30 Binary file format should support fast access to information. It means that 31 redundant references should be avoided. Also, if it possible, binary file format should avoid data 32 indexes (like sorted list of strings). However, the described binary format supports one index: 59 To support this feature, the described binary file format uses offsets and doesn't specify how 64 The binary file format supports future changes via version number. 68 Any tool which supports format version `N` must support format version `N - 1` too. [all …]
|
| /arkcompiler/runtime_core/cmake/ |
| D | README.md | 12 …ets (if you have installed additional libraries, like google-test, clang-format, clang-tidy, etc.). 25 …roject and then also build style-checker targets (you must install clang-format and clang-tidy wit… 41 You may force fixes for clang-format issues, with the `make clang_force_format` command. 42 Run `make help | grep clang` to see all possible clang-[format|style] targets. 43 …ponding clang-format target (`make clang_format_opt_opt.cpp`) or the clang-tidy one (`make clang_t… 53 * Clang-format style file - `.clang-format` 54 * Script to show diff through clang-format execution - `scripts/run-clang-format.py`
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | bytecode_instruction.h | 242 template <Format FORMAT, typename EnumT = BytecodeInst<MODE>::Opcode, size_t IDX = 0> 245 template <Format FORMAT, size_t IDX = 0> 248 template <Format FORMAT> 251 template <Format FORMAT, size_t IDX = 0> 325 template <Format FORMAT> 328 return JumpTo(Size(FORMAT)); in GetNext() 383 Format GetFormat() const; 407 static constexpr bool HasId(Format format, size_t idx); 409 static constexpr bool HasVReg(Format format, size_t idx); 411 static constexpr bool HasImm(Format format, size_t idx); [all …]
|
| /arkcompiler/runtime_core/static_core/cmake/ |
| D | README.md | 12 …ets (if you have installed additional libraries, like google-test, clang-format, clang-tidy, etc.). 25 …roject and then also build style-checker targets (you must install clang-format and clang-tidy wit… 41 You may force fixes for clang-format issues, with the `make clang_force_format` command. 42 Run `make help | grep clang` to see all possible clang-[format|style] targets. 43 …ponding clang-format target (`make clang_format_opt_opt.cpp`) or the clang-tidy one (`make clang_t… 53 * Clang-format style file - `.clang-format` 54 * Script to show diff through clang-format execution - `scripts/run-clang-format.py`
|
| /arkcompiler/toolchain/build/templates/cxx/ |
| D | external_deps_handler.py | 43 print("file '{}' doesn't exist.".format(input_file)) 51 print("The file '{}' format is incorrect.".format(input_file)) 77 …print("Attemp to get a target({}) which is not in the component's inner_kits!".format(target_name)) 92 … config_info = read_json_file("{}arkcompiler/ets_runtime/bundle.json".format(args.root_src_dir)) 96 … config_info = read_json_file("{}arkcompiler/runtime_core/bundle.json".format(args.root_src_dir)) 100 … config_info = read_json_file("{}arkcompiler/ets_frontend/bundle.json".format(args.root_src_dir)) 104 … config_info = read_json_file("{}arkcompiler/toolchain/bundle.json".format(args.root_src_dir)) 109 "third_party_gn/libuv/dummy_bundle.json".format(args.root_src_dir)) 114 "bounds_checking_function/dummy_bundle.json".format(args.root_src_dir)) 119 "icu/dummy_bundle.json".format(args.root_src_dir)) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/isa/ |
| D | isa.yaml | 42 format: [pref_op_v1_4_v2_4_id_16] 47 format: [pref_op_v1_4_v2_4_v3_4_v4_4_id_16] 52 format: [pref_op_v_8_id_16] 57 format: [pref_op_v1_4_v2_4_id_16] 62 format: [pref_op_v1_4_v2_4_v3_4_v4_4_id_16] 67 format: [pref_op_v_8_id_16] 102 format: [pref_op_v_8_id_32] 109 format: [pref_op_v_8_id_32] 116 format: [pref_op_v_8_id_32] 154 format: [pref_op_v_8_id_32] [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | intl_tests.txt | 177 intl402/DateTimeFormat/prototype/format/throws-value-non-finite.js 178 intl402/DateTimeFormat/prototype/format/dayPeriod-short-en.js 179 intl402/DateTimeFormat/prototype/format/dayPeriod-narrow-en.js 180 intl402/DateTimeFormat/prototype/format/taint-Object-prototype.js 181 intl402/DateTimeFormat/prototype/format/builtin.js 182 intl402/DateTimeFormat/prototype/format/name.js 183 intl402/DateTimeFormat/prototype/format/format-function-builtin.js 184 intl402/DateTimeFormat/prototype/format/related-year-zh.js 185 intl402/DateTimeFormat/prototype/format/bound-to-datetimeformat-instance.js 186 intl402/DateTimeFormat/prototype/format/date-constructor-not-called.js [all …]
|
| /arkcompiler/runtime_core/static_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 27 const BytecodeInstruction::Format format = bcIns.GetFormat(); 29 switch (format) { 34 case BytecodeInstruction::Format::<%=i.format.pretty.upcase%>: 39 …mplace_back(static_cast<int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca… 41 …ins.imms.emplace_back(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=im… 63 // if format has ID in it - recieve it. else instruction is indirect call and id = methodId 66 if (bcIns.HasId(format, 0)) { 99 … "between amount of registers specified by instruction format and amount of function's arguments) "
|
| /arkcompiler/runtime_core/ |
| D | README.md | 25 …ts an ARK bytecode file in text format (*.pa) into a bytecode file in binary format (*.abc). For d… 26 …er, further optimize the ARK bytecode to generate optimized bytecode file in binary format (*.abc). 30 …ler that converts an ARK bytecode file in binary format (*.abc) into an ARK bytecode file in text … 31 ├── docs # Language frontend, ARK file format, and runtime design documents. 37 …fect_scan_aux # Vulnerability defect scanning tool for ARK bytecode file in binary format (*.abc). 39 ├── libpandafile # Source code repository of ARK bytecode files (*.abc) in binary format. 41 ├── panda # CLI tool used to execute ARK bytecode files in binary format(*.abc). 92 …n | Print version info, including file format version and minimum supported file form… 94 Input file: ARK bytecodes in binary format 96 Output file: ARK bytecodes in text format
|
| /arkcompiler/runtime_core/abc2program/common/ |
| D | abc_inst_convert.cpp.erb | 29 const BytecodeInstruction::Format format = bc_ins.GetFormat(); 41 …imms.push_back(bit_cast<double>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca… 43 ….push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca… 45 ….push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca… 67 // if format has ID in it - receive it. else instruction is indirect call and id = method_id 70 if (bc_ins.HasId(format, 0)) { 92 … "between amount of registers specified by instruction format and amount of function's arguments) "
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 26 const BytecodeInstruction::Format format = bc_ins.GetFormat(); 38 …ms.push_back(bit_cast<double>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upc… 40 …ush_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upc… 42 …ush_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upc… 64 // if format has ID in it - recieve it. else instruction is indirect call and id = method_id 67 if (bc_ins.HasId(format, 0)) { 89 … "between amount of registers specified by instruction format and amount of function's arguments) "
|