Home
last modified time | relevance | path

Searched refs:ins (Results 1 – 25 of 62) sorted by relevance

123

/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist-compiler-arm64.txt1 annexB/built-ins/Proxy/set/call-parameters-prototype-dunder-proto.js
2 built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
3 built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
4 built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
5 built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
6 built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
7 built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
8 built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
9 built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
10 built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
[all …]
Dtest262skiplist-long.txt2 built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
3 built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
4 built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
5 built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
6 built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
7 built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
8 built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
9 built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
10 built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
11 built-ins/Array/prototype/sort/stability-2048-elements.js
[all …]
Dtest262skiplist.txt2 annexB/built-ins/RegExp/RegExp-decimal-escape-class-range.js
3 annexB/built-ins/RegExp/incomplete_hex_unicode_escape.js
10 built-ins/Atomics/add/bigint/bad-range.js
11 built-ins/Atomics/add/bigint/good-views.js
12 built-ins/Atomics/add/bigint/non-shared-bufferdata.js
13 built-ins/Atomics/and/bigint/bad-range.js
14 built-ins/Atomics/and/bigint/good-views.js
15 built-ins/Atomics/and/bigint/non-shared-bufferdata.js
16 built-ins/Atomics/compareExchange/bigint/bad-range.js
17 built-ins/Atomics/compareExchange/bigint/good-views.js
[all …]
/arkcompiler/ets_frontend/test262/
Des2022_tests.txt1 built-ins/Object/hasOwn/hasown_inherited_nonwritable_nonconfigurable_nonenumerable.js
2 built-ins/Object/hasOwn/hasown_inherited_getter_configurable_enumerable.js
3 built-ins/Object/hasOwn/hasown_inherited_getter_and_setter_nonconfigurable_enumerable.js
4 built-ins/Object/hasOwn/hasown_inherited_writable_nonconfigurable_nonenumerable.js
5 built-ins/Object/hasOwn/symbol_property_toPrimitive.js
6 built-ins/Object/hasOwn/hasown_inherited_exists.js
7 built-ins/Object/hasOwn/hasown_own_property_exists.js
8 built-ins/Object/hasOwn/hasown_inherited_getter_nonconfigurable_nonenumerable.js
9 built-ins/Object/hasOwn/hasown_inherited_writable_configurable_nonenumerable.js
10 built-ins/Object/hasOwn/hasown_inherited_writable_configurable_enumerable.js
[all …]
Des2015_tests.txt1 built-ins/Array/15.4.5.1-5-1.js
2 built-ins/Array/15.4.5.1-5-2.js
3 built-ins/Array/15.4.5-1.js
4 built-ins/Array/constructor.js
5 built-ins/Array/from/Array.from_arity.js
6 built-ins/Array/from/Array.from_forwards-length-for-array-likes.js
7 built-ins/Array/from/Array.from-descriptor.js
8 built-ins/Array/from/Array.from-name.js
9 built-ins/Array/from/calling-from-valid-1-noStrict.js
10 built-ins/Array/from/calling-from-valid-1-onlyStrict.js
[all …]
Des5_tests.txt1 annexB/built-ins/Date/prototype/getYear/B.2.4.js
2 annexB/built-ins/Date/prototype/getYear/nan.js
3 annexB/built-ins/Date/prototype/getYear/return-value.js
4 annexB/built-ins/Date/prototype/getYear/this-not-date.js
5 annexB/built-ins/Date/prototype/setYear/B.2.5.js
6 annexB/built-ins/Date/prototype/setYear/this-not-date.js
7 annexB/built-ins/Date/prototype/setYear/this-time-nan.js
8 annexB/built-ins/Date/prototype/setYear/this-time-valid.js
9 annexB/built-ins/Date/prototype/setYear/time-clip.js
10 annexB/built-ins/Date/prototype/setYear/year-nan.js
[all …]
DCI_tests.txt1 built-ins/Error/length.js
2 built-ins/Error/message_property.js
3 built-ins/Error/prototype/S15.11.3.1_A1_T1.js
4 built-ins/Error/prototype/S15.11.3.1_A3_T1.js
5 built-ins/Error/prototype/S15.11.4_A3.js
6 built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js
7 built-ins/Error/prototype/message/S15.11.4.3_A2.js
8 built-ins/Error/prototype/name/S15.11.4.2_A1.js
9 built-ins/Error/prototype/toString/15.11.4.4-10-1.js
10 built-ins/Error/prototype/toString/15.11.4.4-6-1.js
[all …]
Des2021_tests.txt1 built-ins/AsyncGeneratorFunction/name.js
2 built-ins/AsyncGeneratorFunction/length.js
3 built-ins/AsyncGeneratorFunction/prototype/constructor.js
4 built-ins/AsyncGeneratorFunction/prototype/prop-desc.js
5 built-ins/AsyncGeneratorFunction/prototype/Symbol.toStringTag.js
6 built-ins/AsyncGeneratorFunction/prototype/not-callable.js
7 built-ins/AsyncGeneratorFunction/prototype/prototype.js
8 built-ins/AsyncGeneratorFunction/prototype/extensibility.js
9 built-ins/AsyncGeneratorFunction/extensibility.js
10 built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js
[all …]
/arkcompiler/runtime_core/assembler/tests/
Dassembler_ins_test.cpp58 const auto &func_value = item.Value().function_table.at(func_name).ins;
101 const auto &function_value = item.Value().function_table.at(func_name).ins;
126 panda::pandasm::Ins ins; variable
129 ins.opcode = Opcode::DEPRECATED_LDMODULEVAR;
130 ins.regs.push_back(reg1);
131 ins.regs.push_back(reg2);
132 ins.imms.push_back(Ins::IType(int64_t(0x1)));
133 ins.ids.push_back("a1");
134 ins.set_label = false;
135 ins.label = "label";
[all …]
Dparser_test.cpp35 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::MOV); in TEST()
36 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST()
37 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in TEST()
52 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].label, "label") << "label expected"; in TEST()
53 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].set_label, true) << "true expected"; in TEST()
54 …ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::INVALID) << "NONE expect… in TEST()
91 … ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
92 …ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].imms[0], Ins::IType(int64_t(1))) << "1 e… in TEST()
107 … ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST()
108 …ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].imms[0], Ins::IType(int64_t(12345))) << … in TEST()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DregAllocator.cpp38 void RegAllocator::PushBack(IRNode *ins) in PushBack() argument
40 pg_->Insns().push_back(ins); in PushBack()
65 void RegAllocator::Run(IRNode *ins, int64_t typeIndex) in Run() argument
67 Run(ins); in Run()
68 pg_->TypedInsns()[ins] = typeIndex; in Run()
71 void RegAllocator::Run(IRNode *ins) in Run() argument
74 auto regCnt = ins->Registers(&regs); in Run()
77 return PushBack(ins); in Run()
83 if (!CheckRegIndices(ins, registers)) { in Run()
87 PushBack(ins); in Run()
[all …]
DregAllocator.h65 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in Emit() local
66 Run(ins); in Emit()
72 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in EmitWithType() local
73 Run(ins, typeIndex); in EmitWithType()
79 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in EmitRange() local
80 Run(ins, argCount); in EmitRange()
84 bool CheckRegIndices(IRNode *ins, const Span<VReg *> &registers,
87 Formats formats = ins->GetFormats();
119 void PushBack(IRNode *ins);
121 void Run(IRNode *ins);
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
Dutil.ts235 export function isRangeInst(ins: IRNode): boolean {
236 if (ins instanceof Callthisrange ||
237 ins instanceof WideCallthisrange ||
238 ins instanceof Callrange ||
239 ins instanceof WideCallrange ||
240 ins instanceof Newobjrange ||
241 ins instanceof WideNewobjrange ||
242 ins instanceof Createobjectwithexcludedkeys ||
243 ins instanceof WideCreateobjectwithexcludedkeys ||
244 ins instanceof Supercallthisrange ||
[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);
232 int32_t num_invalid = std::count_if(func.ins.begin(), func.ins.begin() + ADD_IDX,
249 auto ldai_it = std::find_if(foo.ins.begin(), foo.ins.end(),
251 EXPECT_NE(ldai_it, foo.ins.end());
252 const auto opt_ldai_idx = static_cast<size_t>(ldai_it - foo.ins.begin());
253 EXPECT_EQ(foo.ins[opt_ldai_idx].opcode, panda::pandasm::Opcode::LDAI);
254 EXPECT_LT(opt_ldai_idx + 1, foo.ins.size());
[all …]
/arkcompiler/runtime_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb22 pandasm::Ins ins{};
24 ins.opcode = BytecodeOpcodeToPandasmOpcode(bc_ins.GetOpcode());
38ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pre…
40ins.imms.push_back(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=imm_…
45 ins.regs.push_back(bc_ins.GetVReg(<%=reg_count%>));
48 ins.ids.push_back(IDToString(bc_ins, method_id, <%=id_count%>));
58 if (ins.IsCall()) {
76 overhead = ins.regs.size() - pda.GetNumArgs();
78 overhead = ins.regs.size() - pda.GetNumArgs() - 1;
80 if (overhead < 0 || overhead > static_cast<int>(ins.regs.size())) {
[all …]
/arkcompiler/ets_frontend/ts2panda/templates/
DbuiltinsMap.ts.erb40 static getSubCode(ins: ir.Intrinsic): number | undefined {
42 let code = (builtinsCodeMap as any)[key][ins.mnemonic];
50 static expand2Builtin(ins: ir.Intrinsic, operands: ir.OperandType[]) {
51 let code = this.getSubCode(ins);
53 … throw new Error("Intrinsic getSubCode subcode(" + ins.mnemonic + ") ir = " + ins.toString());
58 switch (ins.mnemonic) {
75 throw new Error("<%= i-2%> parameters must be Imm <" + ins.toString() + ">");
80 throw new Error("<%= i-2%> parameters must be VReg <" + ins.toString() + ">");
85 throw new Error("<%= i-2%> parameters must be string <" + ins.toString() + ">");
90 throw new Error("<%= i-2%> parameters must be string <" + ins.toString() + ">");
[all …]
/arkcompiler/ets_frontend/es2panda/util/
DpatchFix.cpp166 for (const auto &ins : func->ins) { in GenerateFunctionAndClassHash() local
167 ss << (ins.set_label ? "" : "\t") << ins.ToString("", true, func->GetTotalRegs()) << " "; in GenerateFunctionAndClassHash()
168 if (ins.opcode == panda::pandasm::Opcode::CREATEARRAYWITHBUFFER || in GenerateFunctionAndClassHash()
169 ins.opcode == panda::pandasm::Opcode::CREATEOBJECTWITHBUFFER) { in GenerateFunctionAndClassHash()
170 int64_t bufferIdx = GetLiteralIdxFromStringId(ins.ids[0]); in GenerateFunctionAndClassHash()
172 } else if (ins.opcode == panda::pandasm::Opcode::DEFINECLASSWITHBUFFER) { in GenerateFunctionAndClassHash()
173 CollectFunctionsWithDefinedClasses(func->name, ins.ids[0]); in GenerateFunctionAndClassHash()
174 int64_t bufferIdx = GetLiteralIdxFromStringId(ins.ids[1]); in GenerateFunctionAndClassHash()
177 hashList.push_back(std::pair<std::string, std::string>(ins.ids[0], classHash)); in GenerateFunctionAndClassHash()
178 CollectClassMemberFunctions(ins.ids[0], bufferIdx, literalBuffers); in GenerateFunctionAndClassHash()
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.cpp94 void DebugInfoDumper::WriteIns(const pandasm::Ins &ins) in WriteIns() argument
99 insCopy.opcode = ins.opcode; in WriteIns()
100 insCopy.set_label = ins.set_label; in WriteIns()
101 insCopy.label = ins.label; in WriteIns()
105 WrapArray("regs", ins.regs); in WriteIns()
106 WrapArray("ids", ins.ids); in WriteIns()
107 WrapArray("imms", ins.imms); in WriteIns()
111 << "\"" << ins.label << "\","; in WriteIns()
112 WritePosInfo(ins.ins_debug); in WriteIns()
185 WrapArray("ins", iter->second.ins); in Dump()
/arkcompiler/runtime_core/assembler/
Dassembly-function.h77 std::vector<panda::pandasm::Ins> ins; /* function instruction list */ member
114 ASSERT(ins_debug.size() == ins.size()); in SetInsDebug()
115 for (std::size_t i = 0; i < ins.size(); i++) { in SetInsDebug()
116 ins[i].ins_debug = ins_debug[i]; in SetInsDebug()
122 ins.emplace_back(instruction); in AddInstruction()
205 … return std::any_of(ins.cbegin(), ins.cend(), [](const Ins &insn) { return insn.CanThrow(); }); in CanThrow()
210 … return std::any_of(ins.cbegin(), ins.cend(), [](const Ins &insn) { return insn.HasDebugInfo(); }); in HasDebugInfo()
/arkcompiler/ets_frontend/ts2panda/src/
DcompilerStatistics.ts122 getInsName(ins: IRNode): string {
123 if (ins.kind === IRNodeKind.LABEL) {
127 return ins.getMnemonic();
145 pg.getInsns().forEach(ins => {
146 let key = this.getInsName(ins);
147 let opSize = getInstructionSize(ins.kind);
148 let nodeName = ins.getNodeName();
150 LOGD("this IRNode had no key: " + ins.toString());
/arkcompiler/ets_frontend/es2panda/compiler/templates/
Disa.h.erb30 #include <assembly-ins.h>
60 void Transform(pandasm::Ins *ins) const override
62 ins->opcode = pandasm::Opcode::INVALID;
63 ins->set_label = true;
64 ins->label = id_;
219 void Transform(pandasm::Ins* ins) const override
221 ins->opcode = pandasm::Opcode::<%= node_kind %>;
223 ins->regs.reserve(<%= op_map['reg'].length %>);
226 ins->imms.reserve(<%= op_map['imm'].length %>);
229 ins->ids.reserve(<%= op_map['str'].length + op_map['lbl'].length %>);
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyFunctionProto.cpp69 for (const auto &insn : function.ins) { in Serialize()
125 function.ins.reserve(protoFunction.ins_size()); in Deserialize()
126 for (const auto &protoIns : protoFunction.ins()) { in Deserialize()
127 panda::pandasm::Ins ins; in Deserialize() local
128 Ins::Deserialize(protoIns, ins); in Deserialize()
129 function.ins.emplace_back(std::move(ins)); in Deserialize()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp160 void FunctionEmitter::GenInstructionDebugInfo(const IRNode *ins, panda::pandasm::Ins *pandaIns) in GenInstructionDebugInfo() argument
162 const ir::AstNode *astNode = ins->Node(); in GenInstructionDebugInfo()
176 size_t insLen = GetIRNodeWholeLength(ins); in GenInstructionDebugInfo()
191 func_->ins.reserve(pg_->Insns().size()); in GenFunctionInstructions()
193 for (const auto *ins : pg_->Insns()) { in GenFunctionInstructions() local
194 auto &pandaIns = func_->ins.emplace_back(); in GenFunctionInstructions()
196 ins->Transform(&pandaIns); in GenFunctionInstructions()
197 GenInstructionDebugInfo(ins, &pandaIns); in GenFunctionInstructions()
562 for (const auto &ins : func.ins) { in DumpAsm() local
563 … ss << (ins.set_label ? "" : "\t") << ins.ToString("", true, func.GetTotalRegs()) << std::endl; in DumpAsm()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dverifier.cpp234 auto ins = ac.Ins(fixedGate); in RunFixedGatesRelationsCheck() local
235 for (auto i = ins.begin(); i != ins.end(); i++) { in RunFixedGatesRelationsCheck()
270 auto ins = ac.Ins(gate); in RunFlowCyclesFind() local
271 for (auto i = ins.begin(); i != ins.end(); i++) { in RunFlowCyclesFind()
282 auto ins = ac.Ins(gate); in RunFlowCyclesFind() local
283 for (auto i = ins.begin(); i != ins.end(); i++) { in RunFlowCyclesFind()
371 auto ins = ac.Ins(schedulableGate); in RunPrologGatesCheck() local
372 for (auto i = ins.begin(); i != ins.end(); i++) { in RunPrologGatesCheck()
/arkcompiler/runtime_core/bytecode_optimizer/
Doptimize_bytecode.cpp97 pc_ins_map->reserve(function.ins.size()); in BuildMapFromPcToIns()
102 pandasm::Ins &ins = function.ins[idx++]; in BuildMapFromPcToIns() local
103 pc_ins_map->emplace(instructions.GetPc(insn), &ins); in BuildMapFromPcToIns()
104 if (idx >= function.ins.size()) { in BuildMapFromPcToIns()
186 auto &ins_vec = function->ins; in ColumnNumberPropagate()
213 if (function == nullptr || function->ins.empty()) { in LineNumberPropagate()
217 auto &ins_vec = function->ins; in LineNumberPropagate()

123