Home
last modified time | relevance | path

Searched refs:catch_blocks (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/ets_frontend/merge_abc/src/
H A DassemblyFunctionProto.cpp82 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 Dir_builder.cpp460 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 Dir_builder.h138 void ConnectTryCodeBlock(const TryCodeBlock &try_block, const ArenaMap<uint32_t, BasicBlock *> &catch_blocks);
/arkcompiler/runtime_core/abc2program/
H A Dprogram_dump.cpp506 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 Dabc_code_processor.cpp182 function_.catch_blocks.emplace_back(pa_catch_block); in HandleCatchBlock()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
H A Doptimize_bytecode_test.cpp215 it->second.catch_blocks.push_back(cat); in HWTEST_F()
/arkcompiler/runtime_core/compiler/tests/
H A DirBuilder_tests.cpp149 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 Dhello_world_test.cpp574 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 Dassembly-function.h81 std::vector<CatchBlock> catch_blocks; member
H A Dassembly-parser.cpp901 curr_func_->catch_blocks.push_back(catch_block); in ParseAsCatchDirective()
H A Dassembly-emitter.cpp1794 for (auto &catch_block : catch_blocks) { in MakeOrderAndOffsets()
/arkcompiler/runtime_core/assembler/tests/
H A Dparser_test.cpp2533 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 Dfile_reader.cpp636 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 Dfile_items.h1367 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 Demitter.cpp476 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 Dcodegen.cpp107 function_->catch_blocks = catch_blocks_; in RunImpl()
H A Doptimize_bytecode.cpp209 if (panda::bytecodeopt::options.IsSkipMethodsWithEh() && !function.catch_blocks.empty()) { in SkipFunction()
/arkcompiler/runtime_core/disassembler/
H A Ddisassembler.cpp809 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 DpatchFix.cpp206 for (const auto &ct : func->catch_blocks) { in GenerateFunctionAndClassHash()

Completed in 33 milliseconds