Home
last modified time | relevance | path

Searched refs:function_table (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/runtime_core/assembler/tests/
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/runtime_core/bytecode_optimizer/tests/
Dexcluded_keys_test.cpp86 auto it = program.function_table.find(fun_name);
87 EXPECT_NE(it, program.function_table.end());
132 auto it1 = program1.function_table.find(fun_name);
133 EXPECT_NE(it1, program1.function_table.end());
Dbcopt_type_adaption_test.cpp185 auto it = program.function_table.find(fun_name); in TypeAdaptionTest()
186 TestAssertNotEqual(it, program.function_table.end()); in TypeAdaptionTest()
211 it = program.function_table.find(fun_name); in TypeAdaptionTest()
212 TestAssertNotEqual(it, program.function_table.end()); in TypeAdaptionTest()
299 auto it = program.function_table.find(fun_name); in TypeAdaptionTest_UnconditionalJump()
300 TestAssertNotEqual(it, program.function_table.end()); in TypeAdaptionTest_UnconditionalJump()
319 it = program.function_table.find(fun_name); in TypeAdaptionTest_UnconditionalJump()
320 TestAssertNotEqual(it, program.function_table.end()); in TypeAdaptionTest_UnconditionalJump()
Dcommon.h729 ASSERT_TRUE(prog->function_table.find(fun_name) != prog->function_table.end()); in CheckOtherPasses()
730 auto &function = prog->function_table.at(fun_name); in CheckOtherPasses()
762 ASSERT_TRUE(prog->function_table.find(func_name) != prog->function_table.end()); in CheckConstArrayFilling()
763 auto &function = prog->function_table.at(func_name); in CheckConstArrayFilling()
806 ASSERT_TRUE(prog->function_table.find(func_name) != prog->function_table.end()); in CheckConstArray()
807 auto &function = prog->function_table.at(func_name); in CheckConstArray()
Dbitops_bitwise_and_test.cpp120 auto &function = program.function_table.at(sig_main); in TEST_F()
Dbytecodeopt_peepholes_runtime_test.cpp95 for (const auto &inst : program.function_table.at(sig_try_catch).ins) { in TEST_F()
/arkcompiler/runtime_core/assembler/
Dassembly-program.cpp27 ss << JsonSerializeProgramItems(function_table); in JsonDump()
Dassembly-program.h35 std::map<std::string, panda::pandasm::Function> function_table; member
Dassembly-parser.cpp659 for (const auto &f : program_.function_table) { in ParseResetFunctionLabelsAndParams()
671 curr_func_ = &(program_.function_table.at(t.first)); in ParseResetFunctionLabelsAndParams()
695 for (auto &k : program_.function_table) { in ParseResetFunctionTable()
726 …if (insn_it->OperandListLength() - diff < program_.function_table.at(insn_it->ids[0]).GetParamsNum… in ParseResetFunctionTable()
979 for (auto &func : program_.function_table) { in ParseAfterMainLoop()
1301 AddObjectInTable(false, program_.function_table); in ParseOperandCall()
1323 program_.function_table.erase(p); in ParseOperandCall()
1327 if (program_.function_table.find(curr_ins_->ids.back()) == program_.function_table.end()) { in ParseOperandCall()
1328 auto node_handle = program_.function_table.extract(p); in ParseOperandCall()
1330 program_.function_table.insert(std::move(node_handle)); in ParseOperandCall()
[all …]
Dassembly-emitter.cpp1007 for (const auto &f : program.function_table) { in MakeFunctionItems()
1157 for (const auto &[name, func] : program.function_table) { in MakeFunctionDebugInfoAndAnnotations()
1237 for (const auto &f : program.function_table) { in EmitFunctions()
1312 for (auto &[name, func] : prog->function_table) { in MakeSlotNumberAnnotation()
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp30 for (const auto &[name, func] : program.function_table) { in Serialize()
72 program.function_table.insert({name, std::move(*function)}); in Deserialize()
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.cpp165 auto iter = prog_->function_table.begin(); in Dump()
167 for (; iter != prog_->function_table.end(); ++iter) { in Dump()
196 if (std::next(iter) != prog_->function_table.end()) { in Dump()
/arkcompiler/ets_frontend/es2panda/util/
Dhotfix.cpp325 if (!prog->function_table.at(func).metadata->IsForeign()) { in HandleModifiedClasses()
335 if (prog->function_table.at(func).metadata->IsForeign()) { in HandleModifiedClasses()
336 prog->function_table.at(func).metadata->RemoveAttribute(EXTERNAL_ATTRIBUTE); in HandleModifiedClasses()
430 (*prog)->function_table.emplace(patchFuncMain0.name, std::move(patchFuncMain0)); in Finalize()
431 (*prog)->function_table.emplace(patchFuncMain1.name, std::move(patchFuncMain1)); in Finalize()
/arkcompiler/runtime_core/runtime/tests/
Dmethod_test.cpp77 ASSERT_NE(prog.function_table.find(name), prog.function_table.end()); in VerifyLineNumber()
78 auto &insVec = prog.function_table.find(name)->second.ins; in VerifyLineNumber()
369 auto &function = prog.function_table.at(pandasm::GetFunctionSignatureFromName("foo", {})); in TEST_F()
/arkcompiler/runtime_core/bytecode_optimizer/
Doptimize_bytecode.cpp300 auto it = prog->function_table.find(func_name); in OptimizeFunction()
301 if (it == prog->function_table.end()) { in OptimizeFunction()
/arkcompiler/runtime_core/disassembler/
Ddisassembler.cpp113 for (const auto &m : prog_.function_table) { in Serialize()
154 if (prog_.function_table.find(signature) != prog_.function_table.end()) { in AddMethodToTables()
160 prog_.function_table.emplace(signature, std::move(new_method)); in AddMethodToTables()
1651 …const bool is_present = prog_.function_table.find(arg_method_signature) != prog_.function_table.ce… in GetInstructions()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp372 prog_->function_table.emplace(function->name, std::move(*function)); in AddFunction()
510 for (auto &[name, func] : prog->function_table) { in DumpAsm()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp1068 prog.function_table.emplace(function.name.c_str(), std::move(function)); in ParseSingleFunc()