/ark/runtime_core/libpandafile/ |
D | code_data_accessor-inl.h | 47 TryBlock try_block(sp); in EnumerateTryBlocks() 48 if (!cb(try_block)) { in EnumerateTryBlocks() 51 sp = sp.SubSpan(try_block.GetSize()); in EnumerateTryBlocks()
|
D | file_items.cpp | 687 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()
|
D | file_items.h | 1261 void AddTryBlock(const TryBlock &try_block) in AddTryBlock() argument 1263 try_blocks_.push_back(try_block); in AddTryBlock()
|
/ark/runtime_core/runtime/include/ |
D | method-inl.h | 281 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/ |
D | method.cpp | 343 …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() 345 … try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
|
/ark/runtime_core/assembler/tests/ |
D | emitter_test.cpp | 317 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() 332 … try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in TEST()
|
/ark/runtime_core/disassembler/ |
D | disassembler.cpp | 473 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()
|
D | disassembler.h | 89 const panda_file::CodeDataAccessor::TryBlock &try_block,
|
/ark/runtime_core/verification/job_queue/ |
D | cache.cpp | 655 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/ |
D | bytecode_circuit_builder.cpp | 159 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/ |
D | interpreter-inl.h | 3727 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() 3729 … try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
|
D | interpreter_assembly.cpp | 3681 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() 3683 … try_block.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catch_block) { in FindCatchBlock()
|
/ark/runtime_core/assembler/ |
D | assembly-emitter.cpp | 1424 for (auto &try_block : try_blocks) { in EmitFunctions() local 1425 code->AddTryBlock(try_block); in EmitFunctions()
|