/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | assemblyFunctionProto.cpp | 82 for (const auto &block : function.catch_blocks) { in Serialize() 163 function.catch_blocks.reserve(protoFunction.catchblocks_size()); in Deserialize() 168 function.catch_blocks.emplace_back(std::move(*catchBlock)); in Deserialize()
|
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
H A D | ir_builder.cpp | 460 ArenaMap<uint32_t, BasicBlock *> catch_blocks(GetGraph()->GetLocalAllocator()->Adapter()); in ConnectTryCatchBlocks() 469 catch_blocks.emplace(pc, catch_begin); in ConnectTryCatchBlocks() 476 ConnectTryCodeBlock(try_block, catch_blocks); in ConnectTryCatchBlocks() 483 void IrBuilder::ConnectTryCodeBlock(const TryCodeBlock &try_block, const ArenaMap<uint32_t, BasicBlock *> &catch_blocks) in ConnectTryCodeBlock() argument 500 auto catch_begin = catch_blocks.at(catch_block.pc); in ConnectTryCodeBlock()
|
H A D | ir_builder.h | 138 void ConnectTryCodeBlock(const TryCodeBlock &try_block, const ArenaMap<uint32_t, BasicBlock *> &catch_blocks);
|
/arkcompiler/runtime_core/abc2program/ |
H A D | program_dump.cpp | 506 for (const pandasm::Function::CatchBlock &catch_block : function.catch_blocks) { in DumpOriginalFunctionCatchBlocks() 514 std::vector<pandasm::Function::CatchBlock> catch_blocks; in DumpNormalizedFunctionCatchBlocks() local 515 for (const pandasm::Function::CatchBlock &catch_block : function.catch_blocks) { in DumpNormalizedFunctionCatchBlocks() 516 catch_blocks.emplace_back(PandasmDumperUtils::DeepCopyCatchBlock(catch_block)); in DumpNormalizedFunctionCatchBlocks() 518 for (pandasm::Function::CatchBlock &catch_block : catch_blocks) { in DumpNormalizedFunctionCatchBlocks() 521 for (const pandasm::Function::CatchBlock &catch_block : catch_blocks) { in DumpNormalizedFunctionCatchBlocks()
|
H A D | abc_code_processor.cpp | 182 function_.catch_blocks.emplace_back(pa_catch_block); in HandleCatchBlock()
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
H A D | optimize_bytecode_test.cpp | 215 it->second.catch_blocks.push_back(cat); in HWTEST_F()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | irBuilder_tests.cpp | 149 auto &catchBlock = func.catch_blocks.emplace_back(); in HWTEST_F() 276 auto &catchBlock1 = func.catch_blocks.emplace_back(); in HWTEST_F() 282 auto &catchBlock2 = func.catch_blocks.emplace_back(); in HWTEST_F() 288 auto &catchBlock3 = func.catch_blocks.emplace_back(); in HWTEST_F()
|
/arkcompiler/runtime_core/abc2program/tests/cpp_sources/ |
H A D | hello_world_test.cpp | 574 EXPECT_TRUE(function.catch_blocks.size() == NUM_OF_CODE_TEST_UT_FOO_METHOD_CATCH_BLOCKS); in HWTEST_F() 575 // catch_blocks[0] in HWTEST_F() 576 const pandasm::Function::CatchBlock &pa_catch_block0 = function.catch_blocks[0]; in HWTEST_F() 581 // catch_blocks[1] in HWTEST_F() 582 const pandasm::Function::CatchBlock &pa_catch_block1 = function.catch_blocks[1]; in HWTEST_F() 587 // catch_blocks[2] in HWTEST_F() 588 const pandasm::Function::CatchBlock &pa_catch_block2 = function.catch_blocks[2]; in HWTEST_F() 623 EXPECT_TRUE(function.catch_blocks.size() == 0); in HWTEST_F()
|
/arkcompiler/runtime_core/assembler/ |
H A D | assembly-function.h | 81 std::vector<CatchBlock> catch_blocks; member
|
H A D | assembly-parser.cpp | 901 curr_func_->catch_blocks.push_back(catch_block); in ParseAsCatchDirective()
|
H A D | assembly-emitter.cpp | 1794 for (auto &catch_block : catch_blocks) { in MakeOrderAndOffsets()
|
/arkcompiler/runtime_core/assembler/tests/ |
H A D | parser_test.cpp | 2533 ASSERT_EQ(function.catch_blocks.size(), 1); in TEST() 2534 ASSERT_EQ(function.catch_blocks[0].exception_record, "Exception"); in TEST() 2535 ASSERT_EQ(function.catch_blocks[0].try_begin_label, "try_begin"); in TEST() 2536 ASSERT_EQ(function.catch_blocks[0].try_end_label, "try_end"); in TEST() 2537 ASSERT_EQ(function.catch_blocks[0].catch_begin_label, "catch_begin"); in TEST() 2538 ASSERT_EQ(function.catch_blocks[0].catch_end_label, "catch_begin"); in TEST() 2568 ASSERT_EQ(function.catch_blocks.size(), 1); in TEST() 2569 ASSERT_EQ(function.catch_blocks[0].exception_record, "Exception"); in TEST() 2570 ASSERT_EQ(function.catch_blocks[0].try_begin_label, "try_begin"); in TEST() 2571 ASSERT_EQ(function.catch_blocks[ in TEST() [all...] |
/arkcompiler/runtime_core/libpandafile/ |
H A D | file_reader.cpp | 636 std::vector<CodeItem::CatchBlock> catch_blocks; in EnumerateBlocks() 647 catch_blocks.emplace_back(CodeItem::CatchBlock(method_item, catch_type_item, catch_block.GetHandlerPc(), in EnumerateBlocks() 652 CodeItem::TryBlock(try_block.GetStartPc(), try_block.GetLength(), std::move(catch_blocks))); in EnumerateBlocks()
|
H A D | file_items.h | 1367 TryBlock(size_t start_pc, size_t length, std::vector<CatchBlock> catch_blocks) in TryBlock() argument 1368 : start_pc_(start_pc), length_(length), catch_blocks_(std::move(catch_blocks)) in TryBlock()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
H A D | emitter.cpp | 476 func_->catch_blocks.reserve(pg_->CatchList().size()); in GenFunctionCatchTables() 481 auto &pandaCatchBlock = func_->catch_blocks.emplace_back(); in GenFunctionCatchTables() 1183 for (const auto &ct : func.catch_blocks) { in DumpAsm()
|
/arkcompiler/runtime_core/bytecode_optimizer/ |
H A D | codegen.cpp | 107 function_->catch_blocks = catch_blocks_; in RunImpl()
|
H A D | optimize_bytecode.cpp | 209 if (panda::bytecodeopt::options.IsSkipMethodsWithEh() && !function.catch_blocks.empty()) { in SkipFunction()
|
/arkcompiler/runtime_core/disassembler/ |
H A D | disassembler.cpp | 809 method->catch_blocks.push_back(catch_block_pa); in GetExceptions() 1964 if (method.catch_blocks.size() != 0) { in Serialize() 1967 for (const auto &catch_block : method.catch_blocks) { in Serialize()
|
/arkcompiler/ets_frontend/es2panda/util/ |
H A D | patchFix.cpp | 206 for (const auto &ct : func->catch_blocks) { in GenerateFunctionAndClassHash()
|