Home
last modified time | relevance | path

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

12345678910

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dopcodes.h59 inline constexpr bool IsBranch(Opcode opcode) in IsBranch() argument
61 … return (opcode == OP_goto || opcode == OP_brtrue || opcode == OP_brfalse || opcode == OP_switch || in IsBranch()
62 opcode == OP_igoto); in IsBranch()
65 inline constexpr bool IsLogicalShift(Opcode opcode) in IsLogicalShift() argument
67 return (opcode == OP_lshr || opcode == OP_shl); in IsLogicalShift()
70 constexpr bool IsCommutative(Opcode opcode) in IsCommutative() argument
72 switch (opcode) { in IsCommutative()
90 constexpr bool IsStmtMustRequire(Opcode opcode) in IsStmtMustRequire() argument
92 switch (opcode) { in IsStmtMustRequire()
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-ins.h36 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) opcode, argument
70 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) (flags), argument
76 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) (width), argument
82 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) (def_idx), argument
87 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) (use_idxs), argument
95 #define OPLIST(opcode, name, optype, width, flags, def_idx, use_idxs, prof_size) (prof_size), argument
110 Opcode opcode = Opcode::INVALID; /* operation type */ member
137 if (opcode == Opcode::INVALID) { // NOTE(mbolshov): introduce 'label' opcode for labels in HasFlag()
140 return (INST_FLAGS_TABLE[static_cast<size_t>(opcode)] & flag) != 0; in HasFlag()
181 if (opcode == Opcode::INVALID) { in MaxRegEncodingWidth()
[all …]
/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/static_core/compiler/optimizer/code_generator/
Dlib_call_inst.h25 auto opcode = inst->GetOpcode(); in HasLibCall() local
30 if (opcode == Opcode::Mod) { in HasLibCall()
36 if (opcode == Opcode::Mod) { in HasLibCall()
39 if (opcode == Opcode::Div) { in HasLibCall()
42 if (opcode == Opcode::Cast) { in HasLibCall()
/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 …]
/arkcompiler/runtime_core/static_core/libpandafile/templates/
Dbytecode_emitter_gen.h.erb26 % offsets = [0] # for opcode
52 % OPCODE_TYPE + '::' + i.opcode.upcase
100 % opcode = opcode_full_name(i)
103 …pc_ += Emit<<%= format %>>(std::back_inserter(bytecode_), <%= opcode %>, <%= method_args.join(', '…
114 size_t BytecodeEmitter::GetSizeByOpcode(<%= OPCODE_TYPE %> opcode) {
115 switch (opcode) {
151 auto opcode = BytecodeInstruction(insn).GetOpcode();
152 switch (opcode) {
167 BytecodeEmitter::BitImmSize BytecodeEmitter::GetBitImmSizeByOpcode(<%= OPCODE_TYPE %> opcode) {
168 switch (opcode) {
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/
Dline_number_program.h135 auto opcode = ReadOpcode(); in Process() local
137 while (opcode != Opcode::END_SEQUENCE) { in Process()
138 switch (opcode) { in Process()
179 res = HandleSpecialOpcode(opcode); in Process()
188 opcode = ReadOpcode(); in Process()
199 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() local
201 return opcode; in ReadOpcode()
273 bool HandleSpecialOpcode(LineNumberProgramItem::Opcode opcode) in HandleSpecialOpcode() argument
275 ASSERT(static_cast<uint8_t>(opcode) >= LineNumberProgramItem::OPCODE_BASE); in HandleSpecialOpcode()
277 …auto adjustOpcode = static_cast<int32_t>(static_cast<uint8_t>(opcode) - LineNumberProgramItem::OPC… in HandleSpecialOpcode()
Dbytecode_emitter.h106 static size_t GetSizeByOpcode(BytecodeInstruction::Opcode opcode);
107 static BytecodeInstruction::Opcode RevertConditionCode(BytecodeInstruction::Opcode opcode);
109 static BitImmSize GetBitImmSizeByOpcode(BytecodeInstruction::Opcode opcode);
110 static BytecodeInstruction::Opcode GetLongestJump(BytecodeInstruction::Opcode opcode);
111 …BytecodeInstruction::Opcode GetSuitableJump(BytecodeInstruction::Opcode opcode, BytecodeEmitter::B…
/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/ets_runtime/ecmascript/compiler/
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::IsCreateEmptyArrayOp(opcode)) { in Record()
76 } else if (Bytecodes::IsCallOp(opcode)) { in Record()
78 } else if (Bytecodes::IsDefineClassWithBufferOp(opcode)) { in Record()
80 } else if (Bytecodes::IsDefineFunc(opcode)) { in Record()
Dbytecodes.h329 static bool IsCallOp(EcmaOpcode opcode) in IsCallOp() argument
331 switch (opcode) { in IsCallOp()
351 static bool IsCreateObjectWithBufferOp(EcmaOpcode opcode) in IsCreateObjectWithBufferOp() argument
353 switch (opcode) { in IsCreateObjectWithBufferOp()
362 static bool IsCreateEmptyArrayOp(EcmaOpcode opcode) in IsCreateEmptyArrayOp() argument
364 switch (opcode) { in IsCreateEmptyArrayOp()
373 static bool IsCreateArrayWithBufferOp(EcmaOpcode opcode) in IsCreateArrayWithBufferOp() argument
375 switch (opcode) { in IsCreateArrayWithBufferOp()
384 static bool IsDefineClassWithBufferOp(EcmaOpcode opcode) in IsDefineClassWithBufferOp() argument
386 switch (opcode) { in IsDefineClassWithBufferOp()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/
Dconstantfold.h56 …MIRConst *FoldIntConstBinaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntConst *intCon…
82 …ConstvalNode *FoldSignExtend(Opcode opcode, PrimType resultType, uint8 size, const ConstvalNode &c…
95 …ConstvalNode *FoldConstComparison(Opcode opcode, PrimType resultType, PrimType opndType, const Con…
97 ConstvalNode *FoldConstBinary(Opcode opcode, PrimType resultType, const ConstvalNode &const0,
99 ConstvalNode *FoldIntConstComparison(Opcode opcode, PrimType resultType, PrimType opndType,
103 ConstvalNode *FoldIntConstBinary(Opcode opcode, PrimType resultType, const ConstvalNode &const0,
105 ConstvalNode *FoldFPConstComparison(Opcode opcode, PrimType resultType, PrimType opndType,
114 … MIRIntConst *FoldFPConstComparisonMIRConst(Opcode opcode, PrimType resultType, PrimType opndType,
116 ConstvalNode *FoldFPConstBinary(Opcode opcode, PrimType resultType, const ConstvalNode &const0,
118 ConstvalNode *FoldConstUnary(Opcode opcode, PrimType resultType, ConstvalNode *constNode) const;
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinst.h54 #define INST_DEF(opcode, base, ...) class base; argument
261 #define INST_DEF(opcode, ...) opcode, argument
272 #define INST_DEF(opcode, ...) #opcode, argument
304 inline constexpr uintptr_t GetFlagsMask(Opcode opcode) in GetFlagsMask() argument
310 return INST_FLAGS_TABLE[static_cast<size_t>(opcode)]; in GetFlagsMask()
334 inline constexpr uint8_t GetModesMask(Opcode opcode) in GetModesMask() argument
338 return INST_MODES_TABLE[static_cast<size_t>(opcode)]; in GetModesMask()
867 #define INST_DEF(opcode, base, ...) inline const base *CastTo##opcode() const; argument
872 #define INST_DEF(opcode, base, ...) inline base *CastTo##opcode(); argument
935 void SetOpcode(Opcode opcode) in SetOpcode() argument
[all …]
Ddump.cpp187 void DumpTypedFieldOpcode(std::ostream *out, Opcode opcode, uint32_t typeId, const ArenaString &fie… in DumpTypedFieldOpcode() argument
192 ArenaString opc(GetOpcodeString(opcode), adapter); in DumpTypedFieldOpcode()
197 void DumpTypedOpcode(std::ostream *out, Opcode opcode, uint32_t typeId, ArenaAllocator *allocator) in DumpTypedOpcode() argument
200 ArenaString opc(GetOpcodeString(opcode), allocator->Adapter()); in DumpTypedOpcode()
366 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local
369 (*out) << std::setw(INDENT_OPCODE) << opcode + space + cc + space + type; in DumpOpcode()
379 ArenaString opcode(GetOpcodeString(mixinInst->GetOpcode()), adapter); in DumpOpcodeAnyTypeMixin() local
382 << opcode + space + anyBaseType + (mixinInst->IsIntegerWasSeen() ? " i" : "") + in DumpOpcodeAnyTypeMixin()
420 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local
423 …<< (opcode + space + anyBaseType + (IsIntegerWasSeen() ? " i" : "") + (IsSpecialWasSeen() ? " s" :… in DumpOpcode()
[all …]
/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 __anon84f13e270102()
250 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::LDAI; }); in __anon84f13e270202()
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 __anon84f13e270302()
264 … [](const auto &in) { return in.opcode == panda::pandasm::Opcode::ADD2; }); in __anon84f13e270402()
[all …]
/arkcompiler/toolchain/websocket/
Dweb_socket_frame.h31 constexpr inline bool IsControlFrame(uint8_t opcode) in IsControlFrame() argument
33 return opcode >= static_cast<uint8_t>(FrameType::CLOSE); in IsControlFrame()
55 uint8_t opcode = 0; member
64 opcode(static_cast<uint8_t>(headerRaw[0] & 0xf)), in WebSocketFrame()
/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/static_core/runtime/profiling/
Dprofiling_gen.h.erb52 inline size_t GetProfileSizeInBytes(BytecodeInstruction::Opcode opcode)
55 switch (opcode) {
57 case BytecodeInstruction::Opcode::<%= inst.opcode.upcase %>:
65 inline ProfilingKind GetProfileKind(BytecodeInstruction::Opcode opcode)
68 switch (opcode) {
70 case BytecodeInstruction::Opcode::<%= inst.opcode.upcase %>:
/arkcompiler/runtime_core/static_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb25 ins.opcode = BytecodeOpcodeToPandasmOpcode(bcIns.GetOpcode());
78 const bool isInitobj = ins.opcode == pandasm::Opcode::INITOBJ_SHORT ||
79 … ins.opcode == pandasm::Opcode::INITOBJ_RANGE || ins.opcode == pandasm::Opcode::INITOBJ;
81 …const bool isAcc = ins.opcode == pandasm::Opcode::CALL_ACC_SHORT || ins.opcode == pandasm::Opcode:…
82 ins.opcode == pandasm::Opcode::CALL_VIRT_ACC_SHORT ||
83 ins.opcode == pandasm::Opcode::CALL_VIRT_ACC;
/arkcompiler/runtime_core/static_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 …
/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 …
/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/static_core/libpandafile/templates/tests/
Dbytecode_emitter_tests_gen.h.erb75 TestNoneFormat(Opcode::<%= i.opcode.upcase %>, [](BytecodeEmitter* emitter){
83 % opcode = group_insn.opcode.upcase
85 …JcmpBwd_<%= pretty_format %>(Opcode::<%= opcode %>, [](BytecodeEmitter* emitter, uint8_t reg, cons…
91 …JcmpFwd_<%= pretty_format %>(Opcode::<%= opcode %>, [](BytecodeEmitter* emitter, uint8_t reg, cons…
102 % opcode = group_insn.opcode.upcase
104 …Jcmpz_<%= pretty_format %>(Opcode::<%= opcode %>, [](BytecodeEmitter* emitter, const Label &label){
151 expected << Opcode::<%= i.opcode.upcase %> << <%= packed_vals.join(' << ') %>;

12345678910