Home
last modified time | relevance | path

Searched refs:tryBlock (Results 1 - 18 of 18) sorted by relevance

/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
H A Dir_builder.cpp355 EnumerateTryBlocksCoveredPc(throwableInst->GetPc(), [this](const TryCodeBlock &tryBlock) { in ProcessThrowableInstructions()
356 auto tbb = tryBlock.beginBb; in ProcessThrowableInstructions()
444 cda.EnumerateTryBlocks([this](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in CreateTryCatchBoundariesBlocks()
445 auto startPc = tryBlock.GetStartPc(); in CreateTryCatchBoundariesBlocks()
446 auto endPc = startPc + tryBlock.GetLength(); in CreateTryCatchBoundariesBlocks()
448 tryBlock.EnumerateCatchBlocks([this, tryInfo](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in CreateTryCatchBoundariesBlocks()
522 openedTryBlocks_.remove_if([pc](TryCodeBlock *tryBlock) { return tryBlock->boundaries.endPc == pc; }); in TrackTryBoundaries()
527 auto &tryBlock = it->second; in TrackTryBoundaries() local
528 if (tryBlock in TrackTryBoundaries()
558 auto &tryBlock = *openedTryBlocks_.rbegin(); TrackTryBoundaries() local
611 const auto &tryBlock = it.second; MarkTryCatchBlocks() local
656 const auto &tryBlock = it.second; ConnectTryCatchBlocks() local
665 ConnectTryCodeBlock(const TryCodeBlock &tryBlock, const ArenaMap<uint32_t, BasicBlock *> &catchBlocks) ConnectTryCodeBlock() argument
701 RestoreTryEnd(const TryCodeBlock &tryBlock) RestoreTryEnd() argument
839 FindAppropriateCatchBlock(const TryCodeBlock &tryBlock, BasicBlock *throwBlock, uint32_t catchPc) FindAppropriateCatchBlock() argument
869 ConnectThrowBlock(BasicBlock *throwBlock, const TryCodeBlock &tryBlock) ConnectThrowBlock() argument
914 const auto &tryBlock = it.second; ConnectThrowBlocks() local
[all...]
H A Dir_builder.h154 void ConnectTryCodeBlock(const TryCodeBlock &tryBlock, const ArenaMap<uint32_t, BasicBlock *> &catchBlocks);
156 void RestoreTryEnd(const TryCodeBlock &tryBlock);
158 void ConnectThrowBlock(BasicBlock *throwBlock, const TryCodeBlock &tryBlock);
163 bool FindAppropriateCatchBlock(const TryCodeBlock &tryBlock, BasicBlock *throwBlock, uint32_t catchPc);
/arkcompiler/runtime_core/static_core/verification/absint/
H A Dabsint.cpp99 method->EnumerateTryBlocks([&](TryBlock const &tryBlock) { in PrepareVerificationContext()
102 static_cast<uintptr_t>(tryBlock.GetStartPc())); in PrepareVerificationContext()
104 static_cast<uintptr_t>(tryBlock.GetLength())); in PrepareVerificationContext()
161 bool ComputeRegContext(Method const *method, TryBlock const *tryBlock, VerificationContext &verifCtx, in ComputeRegContext() argument
168 tryBlock->GetStartPc()); in ComputeRegContext()
170 tryBlock->GetStartPc() + tryBlock->GetLength()); in ComputeRegContext()
172 LOG_VERIFIER_DEBUG_TRY_BLOCK_COMMON_CONTEXT_COMPUTATION(tryBlock->GetStartPc(), in ComputeRegContext()
173 tryBlock->GetStartPc() + tryBlock in ComputeRegContext()
209 VerifyExcHandler([[maybe_unused]] TryBlock const *tryBlock, CatchBlock const *catchBlock, VerificationContext *verifCtx, RegContext *regContext) VerifyExcHandler() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Dmethod.cpp93 cda.EnumerateTryBlocks([&pcOffset, pc](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in FindCatchBlock()
94 if ((tryBlock.GetStartPc() <= pc) && ((tryBlock.GetStartPc() + tryBlock.GetLength()) > pc)) { in FindCatchBlock()
95 tryBlock.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in FindCatchBlock()
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dcode_data_accessor-inl.h48 TryBlock tryBlock(sp); in EnumerateTryBlocks()
49 if (!cb(tryBlock)) { in EnumerateTryBlocks()
52 sp = sp.SubSpan(tryBlock.GetSize()); in EnumerateTryBlocks()
H A Dfile_items.cpp769 for (auto &tryBlock : tryBlocks_) { in ComputeLayout()
770 tryBlock.SetOffset(offset); in ComputeLayout()
771 tryBlock.ComputeLayout(); in ComputeLayout()
772 offset += tryBlock.GetSize(); in ComputeLayout()
795 for (auto &tryBlock : tryBlocks_) { in CalculateSize()
796 size += tryBlock.GetSize(); in CalculateSize()
826 for (auto &tryBlock : tryBlocks_) { in Write()
827 if (!tryBlock.Write(writer)) { in Write()
H A Dfile_reader.cpp617 codeAcc.EnumerateTryBlocks([this, &methodItem, &methodId, &codeItem](CodeDataAccessor::TryBlock &tryBlock) { in SetMethodCodeIfPresent()
619 tryBlock.EnumerateCatchBlocks( in SetMethodCodeIfPresent()
626 codeItem->AddTryBlock(CodeItem::TryBlock(tryBlock.GetStartPc(), tryBlock.GetLength(), std::move(catchBlocks))); in SetMethodCodeIfPresent()
H A Dfile_items.h1555 void AddTryBlock(const TryBlock &tryBlock) in AddTryBlock() argument
1557 tryBlocks_.push_back(tryBlock); in AddTryBlock()
/arkcompiler/runtime_core/static_core/abc2program/
H A Dabc_code_processor.cpp210 const panda_file::CodeDataAccessor::TryBlock &tryBlock; member
218 const auto tryBeginBcIns = locateTryBlock.bcIns.JumpTo(locateTryBlock.tryBlock.GetStartPc()); in LocateTryBlock()
220 locateTryBlock.bcIns.JumpTo(locateTryBlock.tryBlock.GetStartPc() + locateTryBlock.tryBlock.GetLength()); in LocateTryBlock()
275 codeAccessor.EnumerateTryBlocks([&](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in GetExceptions()
277 LocateTryBlockStruct locateTryBlock {bcIns, bcInsLast, tryBlock, &catchBlockPa, &labelTable, tryIdx}; in GetExceptions()
282 tryBlock.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in GetExceptions()
/arkcompiler/runtime_core/static_core/runtime/
H A Dmethod.cpp402 cda.EnumerateTryBlocks([&pcOffset, cls, pc, this](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in FindCatchBlockInPandaFile()
403 if ((tryBlock.GetStartPc() <= pc) && ((tryBlock.GetStartPc() + tryBlock.GetLength()) > pc)) { in FindCatchBlockInPandaFile()
404 tryBlock.EnumerateCatchBlocks( in FindCatchBlockInPandaFile()
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dmethod-inl.h565 EnumerateTryBlocks([&callback, code = GetInstructions()](const TryBlock &tryBlock) { in EnumerateCatchBlocks()
568 static_cast<uintptr_t>(tryBlock.GetStartPc())); in EnumerateCatchBlocks()
570 static_cast<uintptr_t>(tryBlock.GetLength())); in EnumerateCatchBlocks()
572 const_cast<TryBlock &>(tryBlock).EnumerateCatchBlocks( in EnumerateCatchBlocks()
/arkcompiler/runtime_core/static_core/assembler/tests/
H A Demitter_test.cpp323 cdacc.EnumerateTryBlocks([&](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in TEST()
324 EXPECT_EQ(tryBlock.GetStartPc(), 9); in TEST()
325 EXPECT_EQ(tryBlock.GetLength(), 18); in TEST()
326 EXPECT_EQ(tryBlock.GetNumCatches(), 3); in TEST()
340 tryBlock.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in TEST()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DcheckerContext.cpp224 SmartCastArray CheckerContext::CheckTryBlock(ir::BlockStatement const &tryBlock) noexcept
227 tryBlock.Iterate(
H A DcheckerContext.h226 [[nodiscard]] SmartCastArray CheckTryBlock(ir::BlockStatement const &tryBlock) noexcept;
/arkcompiler/runtime_core/static_core/disassembler/
H A Ddisassembler.cpp690 codeAccessor.EnumerateTryBlocks([&](panda_file::CodeDataAccessor::TryBlock &tryBlock) { in GetExceptions()
692 if (!LocateTryBlock(bcIns, bcInsLast, tryBlock, &catchBlockPa, &labelTable, tryIdx)) { in GetExceptions()
696 tryBlock.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in GetExceptions()
740 const panda_file::CodeDataAccessor::TryBlock &tryBlock, in LocateTryBlock()
744 const auto tryBeginBcIns = bcIns.JumpTo(tryBlock.GetStartPc()); in LocateTryBlock()
745 const auto tryEndBcIns = bcIns.JumpTo(tryBlock.GetStartPc() + tryBlock.GetLength()); in LocateTryBlock()
739 LocateTryBlock(const BytecodeInstruction &bcIns, const BytecodeInstruction &bcInsLast, const panda_file::CodeDataAccessor::TryBlock &tryBlock, pandasm::Function::CatchBlock *catchBlockPa, LabelTable *labelTable, size_t tryIdx) const LocateTryBlock() argument
H A Ddisassembler.h114 const panda_file::CodeDataAccessor::TryBlock &tryBlock,
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dbytecode_circuit_builder.cpp118 panda_file::CodeDataAccessor::TryBlock &tryBlock) { in CollectTryCatchBlockInfo()
119 auto tryStartOffset = tryBlock.GetStartPc(); in CollectTryCatchBlockInfo()
120 auto tryEndOffset = tryBlock.GetStartPc() + tryBlock.GetLength(); in CollectTryCatchBlockInfo()
136 tryBlock.EnumerateCatchBlocks([&](panda_file::CodeDataAccessor::CatchBlock &catchBlock) { in CollectTryCatchBlockInfo()
1244 for (auto tryBlock: bb.trys) { in PrintGraph()
1245 log2 += std::to_string(tryBlock->id) + " , "; in PrintGraph()
/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-emitter.cpp1476 for (auto &tryBlock : tryBlocks) { in EmitFunctions()
1477 code->AddTryBlock(tryBlock); in EmitFunctions()

Completed in 26 milliseconds