Lines Matching defs:bc_ins

785     const auto bc_ins = BytecodeInstruction(code_accessor.GetInstructions());
786 const auto bc_ins_last = bc_ins.JumpTo(code_accessor.GetCodeSize());
792 if (!LocateTryBlock(bc_ins, bc_ins_last, try_block, &catch_block_pa, &label_table, try_idx)) {
804 if (!LocateCatchBlock(bc_ins, bc_ins_last, catch_block, &catch_block_pa, &label_table, try_idx,
839 bool Disassembler::LocateTryBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &bc_ins_last,
844 const auto try_begin_bc_ins = bc_ins.JumpTo(try_block.GetStartPc());
845 const auto try_end_bc_ins = bc_ins.JumpTo(try_block.GetStartPc() + try_block.GetLength());
847 const size_t try_begin_idx = getBytecodeInstructionNumber(bc_ins, try_begin_bc_ins);
848 const size_t try_end_idx = getBytecodeInstructionNumber(bc_ins, try_end_bc_ins);
892 bool Disassembler::LocateCatchBlock(const BytecodeInstruction &bc_ins, const BytecodeInstruction &bc_ins_last,
900 const auto handler_begin_bc_ins = bc_ins.JumpTo(handler_begin_offset);
901 const auto handler_end_bc_ins = bc_ins.JumpTo(handler_end_offset);
903 const size_t handler_begin_idx = getBytecodeInstructionNumber(bc_ins, handler_begin_bc_ins);
904 const size_t handler_end_idx = getBytecodeInstructionNumber(bc_ins, handler_end_bc_ins);
2130 std::string Disassembler::IDToString(BytecodeInstruction bc_ins, panda_file::File::EntityId method_id, size_t idx) const
2133 const auto offset = file_->ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsIndex());
2135 if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::METHOD_ID)) {
2137 } else if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::STRING_ID)) {
2143 ASSERT(bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::LITERALARRAY_ID));
2163 BytecodeInstruction bc_ins, BytecodeInstruction bc_ins_last,
2167 const auto bc_ins_dest = bc_ins.JumpTo(jmp_offset);
2181 << "). incorrect instruction at offset: 0x" << (bc_ins.GetAddress() - ins_arr)
2187 << "). incorrect instruction at offset: 0x" << (bc_ins.GetAddress() - ins_arr)
2202 auto bc_ins = BytecodeInstruction(ins_arr);
2203 const auto bc_ins_last = bc_ins.JumpTo(ins_sz);
2209 while (bc_ins.GetAddress() != bc_ins_last.GetAddress()) {
2210 if (bc_ins.GetAddress() > bc_ins_last.GetAddress()) {
2218 auto pa_ins = BytecodeInstructionToPandasmInstruction(bc_ins, method_id);
2220 translateImmToLabel(&pa_ins, &label_table, ins_arr, bc_ins, bc_ins_last, code_id);
2224 if (bc_ins.HasFlag(BytecodeInstruction::Flags::METHOD_ID)) {
2225 const auto arg_method_idx = bc_ins.GetId().AsIndex();
2238 bc_ins = bc_ins.GetNext();