Lines Matching refs:bc_ins
480 const auto bc_ins = BytecodeInstruction(code_accessor.GetInstructions()); in GetExceptions() local
481 const auto bc_ins_last = bc_ins.JumpTo(code_accessor.GetCodeSize()); in GetExceptions()
487 … if (!LocateTryBlock(bc_ins, bc_ins_last, try_block, &catch_block_pa, &label_table, try_idx)) { in GetExceptions()
500 … if (!LocateCatchBlock(bc_ins, bc_ins_last, catch_block, &catch_block_pa, &label_table, try_idx, in GetExceptions()
535 bool Disassembler::LocateTryBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &bc_… in LocateTryBlock() argument
540 const auto try_begin_bc_ins = bc_ins.JumpTo(try_block.GetStartPc()); in LocateTryBlock()
541 const auto try_end_bc_ins = bc_ins.JumpTo(try_block.GetStartPc() + try_block.GetLength()); in LocateTryBlock()
543 const size_t try_begin_idx = getBytecodeInstructionNumber(bc_ins, try_begin_bc_ins); in LocateTryBlock()
544 const size_t try_end_idx = getBytecodeInstructionNumber(bc_ins, try_end_bc_ins); in LocateTryBlock()
588 bool Disassembler::LocateCatchBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &b… in LocateCatchBlock() argument
596 const auto handler_begin_bc_ins = bc_ins.JumpTo(handler_begin_offset); in LocateCatchBlock()
597 const auto handler_end_bc_ins = bc_ins.JumpTo(handler_end_offset); in LocateCatchBlock()
599 const size_t handler_begin_idx = getBytecodeInstructionNumber(bc_ins, handler_begin_bc_ins); in LocateCatchBlock()
600 const size_t handler_end_idx = getBytecodeInstructionNumber(bc_ins, handler_end_bc_ins); in LocateCatchBlock()
1550 std::string Disassembler::IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_… in IDToString() argument
1554 const auto offset = file_->ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsIndex()); in IDToString()
1556 if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::METHOD_ID)) { in IDToString()
1558 } else if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::STRING_ID)) { in IDToString()
1563 ASSERT(bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::LITERALARRAY_ID)); in IDToString()
1583 BytecodeInstruction bc_ins, BytecodeInstruction bc_ins_last, in translateImmToLabel() argument
1587 const auto bc_ins_dest = bc_ins.JumpTo(jmp_offset); in translateImmToLabel()
1602 … << "). incorrect instruction at offset: 0x" << (bc_ins.GetAddress() - ins_arr) in translateImmToLabel()
1608 … << "). incorrect instruction at offset: 0x" << (bc_ins.GetAddress() - ins_arr) in translateImmToLabel()
1623 auto bc_ins = BytecodeInstruction(ins_arr); in GetInstructions() local
1624 const auto bc_ins_last = bc_ins.JumpTo(ins_sz); in GetInstructions()
1630 while (bc_ins.GetAddress() != bc_ins_last.GetAddress()) { in GetInstructions()
1631 if (bc_ins.GetAddress() > bc_ins_last.GetAddress()) { in GetInstructions()
1639 auto pa_ins = BytecodeInstructionToPandasmInstruction(bc_ins, method_id); in GetInstructions()
1641 translateImmToLabel(&pa_ins, &label_table, ins_arr, bc_ins, bc_ins_last, code_id); in GetInstructions()
1645 if (bc_ins.HasFlag(BytecodeInstruction::Flags::METHOD_ID)) { in GetInstructions()
1646 const auto arg_method_idx = bc_ins.GetId().AsIndex(); in GetInstructions()
1660 bc_ins = bc_ins.GetNext(); in GetInstructions()