Home
last modified time | relevance | path

Searched refs:try_block (Results 1 – 13 of 13) sorted by relevance

/ark/runtime_core/libpandafile/
Dcode_data_accessor-inl.h47 TryBlock try_block(sp); in EnumerateTryBlocks()
48 if (!cb(try_block)) { in EnumerateTryBlocks()
51 sp = sp.SubSpan(try_block.GetSize()); in EnumerateTryBlocks()
Dfile_items.cpp687 for (auto &try_block : try_blocks_) { in ComputeLayout() local
688 try_block.SetOffset(offset); in ComputeLayout()
689 try_block.ComputeLayout(); in ComputeLayout()
690 offset += try_block.GetSize(); in ComputeLayout()
713 for (auto &try_block : try_blocks_) { in CalculateSize() local
714 size += try_block.GetSize(); in CalculateSize()
744 for (auto &try_block : try_blocks_) { in Write() local
745 if (!try_block.Write(writer)) { in Write()
Dfile_items.h1261 void AddTryBlock(const TryBlock &try_block) in AddTryBlock() argument
1263 try_blocks_.push_back(try_block); in AddTryBlock()
/ark/runtime_core/runtime/include/
Dmethod-inl.h281 EnumerateTryBlocks([&callback, code = GetInstructions()](const TryBlock &try_block) { in EnumerateCatchBlocks()
284 … static_cast<uintptr_t>(try_block.GetStartPc())); in EnumerateCatchBlocks()
286 … static_cast<uintptr_t>(try_block.GetLength())); in EnumerateCatchBlocks()
288 const_cast<TryBlock &>(try_block).EnumerateCatchBlocks( in EnumerateCatchBlocks()
/ark/runtime_core/runtime/
Dmethod.cpp343 …EnumerateTryBlocks([&pc_offset, cls, pc, this](panda_file::CodeDataAccessor::TryBlock &try_block) { in FindCatchBlock() argument
344 … if ((try_block.GetStartPc() <= pc) && ((try_block.GetStartPc() + try_block.GetLength()) > pc)) { in FindCatchBlock()
345try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
/ark/runtime_core/assembler/tests/
Demitter_test.cpp317 cdacc.EnumerateTryBlocks([&](panda_file::CodeDataAccessor::TryBlock &try_block) { in TEST() argument
318 EXPECT_EQ(try_block.GetStartPc(), 9); in TEST()
319 EXPECT_EQ(try_block.GetLength(), 18); in TEST()
320 EXPECT_EQ(try_block.GetNumCatches(), 3); in TEST()
332try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in TEST()
/ark/runtime_core/disassembler/
Ddisassembler.cpp473 code_accessor.EnumerateTryBlocks([&](panda_file::CodeDataAccessor::TryBlock &try_block) { in GetExceptions() argument
475 … if (!LocateTryBlock(bc_ins, bc_ins_last, try_block, &catch_block_pa, &label_table, try_idx)) { in GetExceptions()
479 try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in GetExceptions()
509 const panda_file::CodeDataAccessor::TryBlock &try_block, in LocateTryBlock() argument
513 const auto try_begin_bc_ins = bc_ins.JumpTo(try_block.GetStartPc()); in LocateTryBlock()
514 const auto try_end_bc_ins = bc_ins.JumpTo(try_block.GetStartPc() + try_block.GetLength()); in LocateTryBlock()
Ddisassembler.h89 const panda_file::CodeDataAccessor::TryBlock &try_block,
/ark/runtime_core/verification/job_queue/
Dcache.cpp655 cda.EnumerateTryBlocks([&](const auto &try_block) { in InitializeCode() argument
657 …terpret_cast<uintptr_t>(cached_method->bytecode) + static_cast<uintptr_t>(try_block.GetStartPc())); in InitializeCode()
659 … static_cast<uintptr_t>(try_block.GetLength())); in InitializeCode()
660 const_cast<panda_file::CodeDataAccessor::TryBlock &>(try_block).EnumerateCatchBlocks( in InitializeCode()
/ark/js_runtime/ecmascript/compiler/
Dbytecode_circuit_builder.cpp159 panda_file::CodeDataAccessor::TryBlock &try_block) { in CollectTryCatchBlockInfo() argument
160 auto tryStartOffset = try_block.GetStartPc(); in CollectTryCatchBlockInfo()
161 auto tryEndOffset = try_block.GetStartPc() + try_block.GetLength(); in CollectTryCatchBlockInfo()
166 try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in CollectTryCatchBlockInfo()
/ark/js_runtime/ecmascript/interpreter/
Dinterpreter-inl.h3727 cda.EnumerateTryBlocks([&pcOffset, pc](panda_file::CodeDataAccessor::TryBlock &try_block) { in FindCatchBlock()
3728 … if ((try_block.GetStartPc() <= pc) && ((try_block.GetStartPc() + try_block.GetLength()) > pc)) { in FindCatchBlock()
3729try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
Dinterpreter_assembly.cpp3681 cda.EnumerateTryBlocks([&pcOffset, pc](panda_file::CodeDataAccessor::TryBlock &try_block) { in FindCatchBlock() argument
3682 … if ((try_block.GetStartPc() <= pc) && ((try_block.GetStartPc() + try_block.GetLength()) > pc)) { in FindCatchBlock()
3683try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
/ark/runtime_core/assembler/
Dassembly-emitter.cpp1424 for (auto &try_block : try_blocks) { in EmitFunctions() local
1425 code->AddTryBlock(try_block); in EmitFunctions()