| /arkcompiler/runtime_core/runtime/interpreter/ |
| D | interpreter-inl.h | 74 template <BytecodeInstruction::Format format, bool is_dynamic> 75 class DimIterator final : VRegisterIterator<format> { 78 …explicit DimIterator(BytecodeInstruction insn, Frame *frame) : VRegisterIterator<format>(std::move… in DimIterator() 88 template <BytecodeInstruction::Format format, class InstructionHandler> 92 return instr_handler->GetInst().template GetImm<format, 0>() + 1; in GetNumberActualArgsDyn() 95 template <BytecodeInstruction::Format format, class InstructionHandler> 120 template <BytecodeInstruction::Format format> 124 this->template MoveToNextInst<format, false>(); in HandleNop() 127 template <BytecodeInstruction::Format format> 130 auto imm = bit_cast<double>(this->GetInst().template GetImm<format>()); in HandleFldaiDyn() [all …]
|
| D | vregister_iterator.h | 20 template <BytecodeInstruction::Format format> 31 if constexpr (format == BytecodeInstruction::Format::V4_V4_ID16 /* short */) { in GetAs() 34 vreg_idx = instn_.GetVReg<format, 0>(); in GetAs() 38 vreg_idx = instn_.GetVReg<format, 1>(); in GetAs() 44 } else if constexpr (format == BytecodeInstruction::Format::V4_V4_V4_V4_ID16) { in GetAs() 47 vreg_idx = instn_.GetVReg<format, 0>(); in GetAs() 51 vreg_idx = instn_.GetVReg<format, 1>(); in GetAs() 55 vreg_idx = instn_.GetVReg<format, 2>(); in GetAs() 59 vreg_idx = instn_.GetVReg<format, 3>(); in GetAs() 65 } else if constexpr (format == BytecodeInstruction::Format::V8_ID16 /* range */) { in GetAs() [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/runtime_core/verification/absint/ |
| D | abs_int_inl.h | 400 template <BytecodeInstructionSafe::Format format> 406 MoveToNextInst<format>(); in HandleNop() 411 template <BytecodeInstructionSafe::Format format> 416 uint16_t vd = inst_.GetVReg<format, 0x00>(); in HandleMov() 417 uint16_t vs = inst_.GetVReg<format, 0x01>(); in HandleMov() 425 MoveToNextInst<format>(); in HandleMov() 429 template <BytecodeInstructionSafe::Format format> 434 uint16_t vd = inst_.GetVReg<format, 0x00>(); in HandleMovWide() 435 uint16_t vs = inst_.GetVReg<format, 0x01>(); in HandleMovWide() 443 MoveToNextInst<format>(); in HandleMovWide() [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 290 format: [op_none] 294 format: [op_none] 298 format: [op_none] 302 format: [op_none] 306 format: [op_none] 310 format: [op_none] 314 format: [op_none] 318 format: [op_none] 322 format: [op_none] [all …]
|
| D | isapi.rb | 92 # 'Instruction' instances are created for every format of every isa.yaml 109 fmt = format.pretty 147 # Format instance for raw-data format name 148 def format method in Instruction 149 Panda.format_hash[dig(:format)] 158 ops_encoding = format.encoding 285 # Methods over format names 287 class Format class 304 raise "Incorrect format name #{name}" if bits % 8 != 0 488 # e.g. 'Panda::groups[0].instruction[0].format' [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 …]
|
| D | bytecode_emitter_gen.h.erb | 18 template <Format format, typename It, typename... Types> 23 % fmt = i.format 31 if constexpr (format == Format::<%= fmt.pretty.upcase %>) { 48 % FORMAT_TYPE = 'BytecodeInstruction::Format' 55 % FORMAT_TYPE + '::' + i.format.pretty.upcase 60 % formats = group.map(&:format) 74 % format = format_full_name(i) 76 pc_ += Emit<<%= format %>>(std::back_inserter(bytecode_), <%= jmp_args.join(', ') %>); 79 % format = format_full_name(i) 80 pc_ += Emit<<%= format %>>(std::back_inserter(bytecode_), <%= jmp_args.join(', ') %>); [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() 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/ |
| 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/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/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`
|
| D | CodeStyle.cmake | 14 # Currently we fix a certain version of clang-format to avoid unstable linting, 16 set(PANDA_CLANG_FORMAT "clang-format-9") 18 # Require clang-format 22 DOC "Path to clang-format executable" 25 message(WARNING "Clang-format not found.") 27 message(STATUS "clang-format found: ${CLANG_FORMAT}") 66 # Also add format-target for headers 84 # Function to check through clang-format 90 COMMAND ${PANDA_ROOT}/scripts/run-clang-format ${PANDA_CLANG_FORMAT} ${src}) 96 set(CHECK_CONCURRENCY_FORMAT "${PANDA_ROOT}/scripts/run-check-concurrency-format.sh") [all …]
|
| /arkcompiler/runtime_core/ |
| D | README.md | 26 …ts an ARK bytecode file in text format (*.pa) into a bytecode file in binary format (*.abc). For d… 27 …er, further optimize the ARK bytecode to generate optimized bytecode file in binary format (*.abc). 31 …ler that converts an ARK bytecode file in binary format (*.abc) into an ARK bytecode file in text … 32 ├── docs # Language frontend, ARK file format, and runtime design documents. 38 …fect_scan_aux # Vulnerability defect scanning tool for ARK bytecode file in binary format (*.abc). 40 ├── libpandafile # Source code repository of ARK bytecode files (*.abc) in binary format. 42 ├── panda # CLI tool used to execute ARK bytecode files in binary format(*.abc). 75 The ark\_asm assembler converts the text ARK bytecode file into a bytecode file in binary format. 93 … --version | Print version info, including file format version and minimum supported file form… 95 Input file: ARK bytecodes in text format [all …]
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 26 const BytecodeInstruction::Format format = bc_ins.GetFormat(); 28 switch (format) { 33 case BytecodeInstruction::Format::<%=i.format.pretty.upcase%>: 38 ….push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca… 40 …ins.imms.push_back(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=imm_… 60 // if format has ID in it - recieve it. else instruction is indirect call and id = method_id 63 if (bc_ins.HasId(format, 0)) { 85 … "between amount of registers specified by instruction format and amount of function's arguments) "
|
| /arkcompiler/runtime_core/libpandafile/templates/tests/ |
| D | bytecode_emitter_tests_gen.h.erb | 33 template <BytecodeInstruction::Format format, typename It, typename... Types> 39 % fmt = i.format 45 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) { 92 template <BytecodeInstruction::Format format, typename It, typename... Types> 98 % fmt = i.format 112 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) { 141 if constexpr (format == BytecodeInstruction::Format::<%= fmt.pretty.upcase %>) { 160 % FORMAT_TYPE = 'BytecodeInstruction::Format' 167 % FORMAT_TYPE + '::' + i.format.pretty.upcase 172 % formats = group.map(&:format) [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction.h | 242 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> 318 return JumpTo(Size(format)); in GetNext() 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); [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/config/ |
| D | non_testable.yaml | 45 format: [op_v1_8_v2_8, op_v1_16_v2_16] 58 format: [op_v_8] 71 format: [op_v_8] 84 format: [op_imm_32] 88 format: [op_imm_64] 102 format: [op_none] 125 format: [op_imm_4_v1_4_v2_4_v3_4] 129 format: [op_imm_4_v1_4_v2_4_v3_4_v4_4_v5_4] 133 format: [op_imm_16_v_16]
|
| /arkcompiler/toolchain/build/prebuilts_download/ |
| D | util.py | 25 print("file '{}' doesn't exist.".format(input_file)) 33 print("The file '{}' format is incorrect.".format(input_file)) 36 print("read file '{}' failed.".format(input_file)) 44 print("file '{}' doesn't exist.".format(input_file)) 53 print("read file '{}' failed".format(input_file)) 97 # Call gn format to make the output gn file prettier. 98 cmd = ['gn', 'format']
|
| D | prebuilts_download.py | 86 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 88 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 90 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 100 progress.console.log('Requesting {}'.format(url)) 104 progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red') 111 progress.console.log("Downloaded {}".format(local_file)) 114 progress.console.log("Decompressing {}".format(local_file)) 116 progress.console.log("Decompressed {}".format(local_file)) 133 … progress.console.log('{}, Sha256 markword check OK.'.format(huaweicloud_url), style='green') 142 … progress.console.log('{}, Sha256 check download OK.'.format(local_file), style='green') [all …]
|
| /arkcompiler/runtime_core/scripts/ |
| D | run-clang-format | 15 # A very simple wrapper around clang-format: 16 # Compare the original file with what clang-format thinks it should 20 # scripts/run-clang-format /path/to/clang-format /path/to/checked/file 29 echo "FATAL: clang-format binary '$CLANG_FORMAT_BIN' is not found or not executable"
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | f32toi64.yaml | 30 format: [pref_op_none] 70 format: [pref_op_none] 117 format: [pref_op_none] 140 format: [pref_op_none] 163 format: [pref_op_none] 179 format: [pref_op_none] 195 format: [pref_op_none] 218 format: [pref_op_none] 270 format: [pref_op_none]
|
| D | f64tou32.yaml | 30 format: [pref_op_none] 64 format: [pref_op_none] 111 format: [pref_op_none] 134 format: [pref_op_none] 157 format: [pref_op_none] 173 format: [pref_op_none] 189 format: [pref_op_none] 213 format: [pref_op_none] 266 format: [pref_op_none]
|
| D | f64tou64.yaml | 30 format: [pref_op_none] 73 format: [pref_op_none] 114 format: [pref_op_none] 140 format: [pref_op_none] 166 format: [pref_op_none] 182 format: [pref_op_none] 198 format: [pref_op_none] 221 format: [pref_op_none] 274 format: [pref_op_none]
|