Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 104) sorted by relevance

12345

/arkcompiler/runtime_core/assembler/
Dassembly-ins.h35 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) opcode, argument
70 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) flags, argument
75 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) width, argument
80 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) def_idx, argument
84 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs) use_idxs, argument
100 Opcode opcode = Opcode::INVALID; /* operation type */ member
125 if (opcode == Opcode::INVALID) { // TODO(mbolshov): introduce 'label' opcode for labels in HasFlag()
128 return (INST_FLAGS_TABLE[static_cast<size_t>(opcode)] & flag) != 0; in HasFlag()
169 if (opcode == Opcode::INVALID) { in MaxRegEncodingWidth()
172 return INST_WIDTH_TABLE[static_cast<size_t>(opcode)]; in MaxRegEncodingWidth()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb147 def plain(opcode, *args) argument
148 Leaf.new(instruction_hash[opcode], args.to_a)
160 def case_(types, opcode, *args) argument
161 prefixed_case("compiler::DataType::", types, plain(opcode, *args))
164 def cc_case(types, opcode, *args) argument
165 prefixed_case("compiler::CC_", types, plain(opcode, *args))
172 def case_true(opcode, *args) argument
173 Case.new(['1'], plain(opcode, *args))
176 def case_false(opcode, *args) argument
177 Case.new(['0'], plain(opcode, *args))
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_emitter_gen.h.erb25 % offsets = [0] # for opcode
51 % OPCODE_TYPE + '::' + i.opcode.upcase
99 % opcode = opcode_full_name(i)
102 …pc_ += Emit<<%= format %>>(std::back_inserter(bytecode_), <%= opcode %>, <%= method_args.join(', '…
113 size_t BytecodeEmitter::GetSizeByOpcode(<%= OPCODE_TYPE %> opcode) {
114 switch (opcode) {
150 auto opcode = BytecodeInstruction(insn).GetOpcode();
151 switch (opcode) {
166 BytecodeEmitter::BitImmSize BytecodeEmitter::GetBitImmSizeByOpcode(<%= OPCODE_TYPE %> opcode) {
167 switch (opcode) {
[all …]
Dbytecode_instruction-inl_gen.h.erb339 constexpr typename BytecodeInst<Mode>::Format BytecodeInst<Mode>::GetFormat(Opcode opcode) { // NO…
340 switch(opcode) {
342 case BytecodeInst<Mode>::Opcode::<%= i.opcode.upcase %>:
359 case BytecodeInst<Mode>::Opcode::<%= i.opcode.upcase %>:
381 case BytecodeInst<Mode>::Opcode::<%= i.opcode.upcase %>: {
403 case BytecodeInst<Mode>::Opcode::<%= i.opcode.upcase %>:
417 case BytecodeInst<Mode>::Opcode::<%= i.opcode.upcase %>:
431 case BytecodeInst<Mode>::Opcode::<%= inst.opcode.upcase %>:
452 case BytecodeInst<Mode>::Opcode::<%= inst.opcode.upcase %>:
453 os << "<%= inst.opcode.upcase %>";
[all …]
/arkcompiler/runtime_core/libpandafile/
Dline_number_program.h138 auto opcode = ReadOpcode(); in Process() local
140 while (opcode != Opcode::END_SEQUENCE) { in Process()
141 switch (opcode) { in Process()
182 res = HandleSpecialOpcode(opcode); in Process()
191 opcode = ReadOpcode(); in Process()
202 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() local
204 return opcode; in ReadOpcode()
276 bool HandleSpecialOpcode(LineNumberProgramItem::Opcode opcode) in HandleSpecialOpcode() argument
278 ASSERT(static_cast<uint8_t>(opcode) >= LineNumberProgramItem::OPCODE_BASE); in HandleSpecialOpcode()
280 …auto adjust_opcode = static_cast<int32_t>(static_cast<uint8_t>(opcode) - LineNumberProgramItem::OP… in HandleSpecialOpcode()
Dbytecode_emitter.h108 static size_t GetSizeByOpcode(BytecodeInstruction::Opcode opcode);
109 static BytecodeInstruction::Opcode RevertConditionCode(BytecodeInstruction::Opcode opcode);
111 static BitImmSize GetBitImmSizeByOpcode(BytecodeInstruction::Opcode opcode);
112 static BytecodeInstruction::Opcode GetLongestJump(BytecodeInstruction::Opcode opcode);
113 …BytecodeInstruction::Opcode GetSuitableJump(BytecodeInstruction::Opcode opcode, BytecodeEmitter::B…
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dbcopt_type_adaption_test.cpp226 EXPECT_EQ(func.ins[LDAI_IDX].opcode, panda::pandasm::Opcode::LDAI);
227 EXPECT_EQ(func.ins[LDAI_IDX + 1].opcode, panda::pandasm::Opcode::STA);
230 EXPECT_EQ(func.ins[ADD_IDX].opcode, panda::pandasm::Opcode::ADD2);
231 EXPECT_EQ(func.ins[ADD_IDX + 1].opcode, panda::pandasm::Opcode::STA);
233 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::INVALID; }); in __anonc5413f460102()
250 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::LDAI; }); in __anonc5413f460202()
253 EXPECT_EQ(foo.ins[opt_ldai_idx].opcode, panda::pandasm::Opcode::LDAI);
255 EXPECT_EQ(foo.ins[opt_ldai_idx + 1].opcode, panda::pandasm::Opcode::STA);
258 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::INVALID; }); in __anonc5413f460302()
264 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::ADD2; }); in __anonc5413f460402()
[all …]
Dexcluded_keys_test.cpp95 if (in.opcode != panda::pandasm::Opcode::INVALID) {
140 EXPECT_EQ(opt_ins.opcode, expected_ins.opcode);
/arkcompiler/runtime_core/assembler/tests/
Dassembler_ins_test.cpp129 ins.opcode = Opcode::DEPRECATED_LDMODULEVAR;
142 ins.opcode = Opcode::MOVX;
148 ins.opcode = Opcode::DEFINEFUNC;
155 ins.opcode = Opcode::JEQZ;
158 ins.opcode = Opcode::SUPERCALLARROWRANGE;
164 ins.opcode = Opcode::NEWOBJRANGE;
171 ins.opcode = Opcode::DEFINECLASSWITHBUFFER;
177 ins.opcode = Opcode::CALLX;
182 ins.opcode = Opcode::STOBJBYVALUE;
190 ins.opcode = Opcode::INVALID;
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/
DIR-instructions.md.erb29 case inst.opcode
31 verify << "users.contain(#{ null_check_users.map { |x| x.opcode }.join(', ')})"
33 verify << "users.contain(#{ zero_check_users.map { |x| x.opcode }.join(', ')})"
35 verify << "users.contain(#{ bounds_check_users.map { |x| x.opcode }.join(', ')})"
37 verify << "users.contain(#{ negative_check_users.map { |x| x.opcode }.join(', ')})"
41 | <%= inst.opcode %> | <%= dest %> | <%= inputs %> | <%= inst.flags.join(', ') %> | <%= verify_str …
Dinst_builder_gen.cpp.erb144 return 'ConditionCode::CC_EQ' if inst.opcode.start_with? 'jeq'
145 return 'ConditionCode::CC_NE' if inst.opcode.start_with? 'jne'
146 return 'ConditionCode::CC_LT' if inst.opcode.start_with? 'jlt'
147 return 'ConditionCode::CC_GT' if inst.opcode.start_with? 'jgt'
148 return 'ConditionCode::CC_LE' if inst.opcode.start_with? 'jle'
149 return 'ConditionCode::CC_GE' if inst.opcode.start_with? 'jge'
150 return 'ConditionCode::CC_EQ' if inst.opcode.start_with? 'jstricteq'
151 return 'ConditionCode::CC_NE' if inst.opcode.start_with? 'jnstricteq'
152 raise 'get_cc: wrong opcode #{inst.opcode}'
173 case BytecodeInstruction::Opcode::<%= inst.opcode.upcase %>: {
[all …]
Dgenerate_ecma.inl.erb30 % instructions = instructions.group_by(&:opcode)
35 % opcode = inst.opcode.upcase
38 % intr_id = i.opcode.upcase
105 LOG(ERROR,COMPILER) << "Unsupported ecma opcode";
/arkcompiler/ets_runtime/ecmascript/compiler/
Dvalue_numbering.cpp36 auto opcode = acc_.GetOpCode(gate); in VisitGate() local
37 if (opcode != OpCode::CONVERT) { in VisitGate()
87 auto opcode = acc_.GetOpCode(lhs); in CheckReplacement() local
88 if (opcode == OpCode::CONVERT) { in CheckReplacement()
Dpgo_bc_info.cpp65 … BytecodeInstruction::Opcode opcode = static_cast<BytecodeInstruction::Opcode>(bcIns.GetOpcode()); in Record() local
68 if (Bytecodes::IsCreateObjectWithBufferOp(opcode)) { in Record()
71 } else if (Bytecodes::IsCreateArrayWithBufferOp(opcode)) { in Record()
74 } else if (Bytecodes::IsCallOp(opcode)) { in Record()
Dlater_elimination.cpp46 auto opcode = acc_.GetOpCode(gate); in VisitGate() local
47 switch (opcode) { in VisitGate()
159 auto opcode = acc_.GetOpCode(lhs); in CheckReplacement() local
160 switch (opcode) { in CheckReplacement()
Dgate.cpp717 auto opcode = GetOpCode(); in Print() local
718 if (opcode != OpCode::NOP && opcode != OpCode::DEAD) { in Print()
719 …std::string log("{\"id\":" + std::to_string(id_) + ", \"op\":\"" + GateMetaData::Str(opcode) + "\"… in Print()
758 opcode = curOut->GetGateConst()->GetOpCode(); in Print()
760 … (inListPreview ? std::string(":" + GateMetaData::Str(opcode)) : std::string("")); in Print()
765 (inListPreview ? std::string(":" + GateMetaData::Str(opcode)) in Print()
776 auto opcode = GetOpCode(); in ShortPrint() local
777 if (opcode != OpCode::NOP && opcode != OpCode::DEAD) { in ShortPrint()
778 …std::string log("(\"id\"=" + std::to_string(id_) + ", \"op\"=\"" + GateMetaData::Str(opcode) + "\"… in ShortPrint()
814 opcode = curOut->GetGateConst()->GetOpCode(); in ShortPrint()
[all …]
/arkcompiler/runtime_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb41 % offsets = [0] # for opcode
101 % offsets4 = [0] # for opcode
103 % offsets8 = [0] # for opcode
105 % offsets16 = [0] # for opcode
107 % offsets32 = [0] # for opcode
109 % offsets64 = [0] # for opcode
163 % OPCODE_TYPE + '::' + i.opcode.upcase
197 % opcode = opcode_full_name(i)
198 …EmitMock<<%= format %>>(std::back_inserter(bytecode), <%= opcode %>, <%= method_args.join(', ') %>…
252 TestNoneFormat(Opcode::<%= i.opcode.upcase %>, [](BytecodeEmitter* emitter) {
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddump.cpp167 void DumpTypedFieldOpcode(std::ostream *out, Opcode opcode, uint32_t type_id, const ArenaString &fi… in DumpTypedFieldOpcode() argument
172 ArenaString opc(GetOpcodeString(opcode), adapter); in DumpTypedFieldOpcode()
177 void DumpTypedOpcode(std::ostream *out, Opcode opcode, uint32_t type_id, ArenaAllocator *allocator) in DumpTypedOpcode() argument
180 ArenaString opc(GetOpcodeString(opcode), allocator->Adapter()); in DumpTypedOpcode()
304 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local
307 (*out) << std::setw(INDENT_OPCODE) << opcode + space + cc + space + type; in DumpOpcode()
317 ArenaString opcode(GetOpcodeString(mixin_inst->GetOpcode()), adapter); in DumpOpcodeAnyTypeMixin() local
319 out << std::setw(INDENT_OPCODE) << opcode + space + any_base_type + space; in DumpOpcodeAnyTypeMixin()
342 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local
345 (*out) << std::setw(INDENT_OPCODE) << opcode + space + cc + space + type; in DumpOpcode()
[all …]
Dinst.h49 #define INST_DEF(opcode, base, ...) class base; argument
167 #define INST_DEF(opcode, ...) opcode, argument
179 #define INST_DEF(opcode, ...) #opcode, argument
213 inline constexpr uintptr_t GetFlagsMask(Opcode opcode) in GetFlagsMask() argument
219 return INST_FLAGS_TABLE[static_cast<size_t>(opcode)]; in GetFlagsMask()
243 inline constexpr uint8_t GetModesMask(Opcode opcode) in GetModesMask() argument
247 return INST_MODES_TABLE[static_cast<size_t>(opcode)]; in GetModesMask()
682 #define INST_DEF(opcode, base, ...) inline const base *CastTo##opcode() const; argument
687 #define INST_DEF(opcode, base, ...) inline base *CastTo##opcode(); argument
750 void SetOpcode(Opcode opcode) in SetOpcode() argument
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyInsProto.cpp21 protoInsn.set_opcode(static_cast<uint32_t>(insn.opcode)); in Serialize()
49 insn.opcode = static_cast<panda::pandasm::Opcode>(protoInsn.opcode()); in Deserialize()
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Dopt_code_profiler.h72 void Update(EcmaOpcode opcode, Mode mode) in Update() argument
74 auto it = profMap_.find(opcode); in Update()
/arkcompiler/runtime_core/tests/
DCMakeLists.txt21 add_custom_target(irtoc-opcode-suite COMMENT "Running irtoc interpreter opcode test suite")
24 add_dependencies(irtoc-interpreter-tests irtoc-opcode-suite)
907 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/ldai.pa")
908 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/and.pa")
909 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/andi.pa")
910 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/or.pa")
911 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/ori.pa")
912 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/shr.pa")
913 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/shri.pa")
914 add_test_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/irtoc-interpreter-tests/irtoc-opcode-suite/shl.pa")
[all …]
/arkcompiler/runtime_core/docs/
D2022-08-18-isa-changelog.md12 ecmascript specific bytecode are prefixed and their opcode were encoded with two bytes.
13 1. We delete all original java specific opcodes and delete java specific opcode prefix.
14 2. We remove the prefix of ecmascript specific opcodes, such that most of the bytecode opcode can b…
15 …isa as "deprecated"-prefixed opcodes (for compatibility). These prefixed opcode will be deleted on…
23 As we merge some "define-function" opcodes as one opcode, in function we add one field which record…
/arkcompiler/runtime_core/libark_defect_scan_aux/templates/
Dopcode_map_table.h.erb22 V( <%= inst.opcode.ljust(30) %>, OPCODE_<%= inst.opcode.upcase.ljust(30) %> ) \
Dintrinsic_map_table.h.erb22 V( <%= inst.opcode.upcase.ljust(60) %>, <%= inst.opcode.upcase.ljust(60) %> ) \

12345