Home
last modified time | relevance | path

Searched refs:label_table (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/runtime_core/disassembler/
H A Ddisassembler.cpp789 LabelTable label_table {}; in GetExceptions()
792 if (!LocateTryBlock(bc_ins, bc_ins_last, try_block, &catch_block_pa, &label_table, try_idx)) { in GetExceptions()
804 if (!LocateCatchBlock(bc_ins, bc_ins_last, catch_block, &catch_block_pa, &label_table, try_idx, in GetExceptions()
821 return label_table; in GetExceptions()
841 pandasm::Function::CatchBlock *catch_block_pa, LabelTable *label_table, in LocateTryBlock()
863 LabelTable::iterator it = label_table->find(try_begin_idx); in LocateTryBlock()
864 if (it == label_table->end()) { in LocateTryBlock()
866 label_table->insert(std::pair<size_t, std::string>(try_begin_idx, ss.str())); in LocateTryBlock()
880 LabelTable::iterator it = label_table->find(try_end_idx); in LocateTryBlock()
881 if (it == label_table in LocateTryBlock()
839 LocateTryBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &bc_ins_last, const panda_file::CodeDataAccessor::TryBlock &try_block, pandasm::Function::CatchBlock *catch_block_pa, LabelTable *label_table, size_t try_idx) const LocateTryBlock() argument
892 LocateCatchBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &bc_ins_last, const panda_file::CodeDataAccessor::CatchBlock &catch_block, pandasm::Function::CatchBlock *catch_block_pa, LabelTable *label_table, size_t try_idx, size_t catch_idx) const LocateCatchBlock() argument
2162 translateImmToLabel(pandasm::Ins *pa_ins, LabelTable *label_table, const uint8_t *ins_arr, BytecodeInstruction bc_ins, BytecodeInstruction bc_ins_last, panda_file::File::EntityId code_id) translateImmToLabel() argument
2205 LabelTable label_table = GetExceptions(method, method_id, code_id); GetInstructions() local
[all...]
H A Ddisassembler.h115 pandasm::Function::CatchBlock *catch_block_pa, LabelTable *label_table, size_t try_idx) const;
118 pandasm::Function::CatchBlock *catch_block_pa, LabelTable *label_table, size_t try_idx,
/arkcompiler/ets_frontend/merge_abc/src/
H A DassemblyFunctionProto.cpp62 for (const auto &[name, label] : function.label_table) { in Serialize()
119 function.label_table.reserve(protoFunction.labeltable_size()); in DeserializeLabels()
125 function.label_table.insert({name, label}); in DeserializeLabels()
/arkcompiler/runtime_core/assembler/
H A Dassembly-function.h76 std::unordered_map<std::string, panda::pandasm::Label> label_table; member
H A Dassembly-parser.cpp659 for (const auto &k : f.second.label_table) { in ParseResetFunctionLabelsAndParams()
2032 label_table_ = &(curr_func_->label_table); in SetFunctionInformation()
/arkcompiler/runtime_core/assembler/tests/
H A Dparser_test.cpp354 ASSERT_EQ(item.Value().function_table.at(sig_main).label_table.at("label1").file_location->line_number, 2U); in TEST()
355 ASSERT_EQ(item.Value().function_table.at(sig_main).label_table.at("label1").file_location->is_defined, true); in TEST()
356 ASSERT_EQ(item.Value().function_table.at(sig_main).label_table.at("label2").file_location->line_number, 3U); in TEST()
357 ASSERT_EQ(item.Value().function_table.at(sig_main).label_table.at("label2").file_location->is_defined, true); in TEST()
358 ASSERT_EQ(item.Value().function_table.at(sig_m123).label_table.at("la1").file_location->line_number, 11U); in TEST()
359 ASSERT_EQ(item.Value().function_table.at(sig_m123).label_table.at("la1").file_location->is_defined, true); in TEST()
H A Dassembler_parser_test.cpp575 auto func_m123_table = item.Value().function_table.at(sig_m123).label_table.at("la1").file_location; in HWTEST_F()
576 auto func_main_table = item.Value().function_table.at(sig_main).label_table.at("label").file_location; in HWTEST_F()

Completed in 18 milliseconds