Lines Matching refs:offset
190 int offset = lir->offset; in DumpLIRInsn() local
222 LOG(INFO) << reinterpret_cast<uintptr_t>(base_addr) + offset << " (0x" << std::hex in DumpLIRInsn()
223 << offset << "): .align4"; in DumpLIRInsn()
242 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
245 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
261 base_addr + offset, in DumpLIRInsn()
304 size_t offset = 0; in UpdateLIROffsets() local
306 lir->offset = offset; in UpdateLIROffsets()
308 offset += GetInsnSize(lir); in UpdateLIROffsets()
310 offset += (offset & 0x2); in UpdateLIROffsets()
339 LOG(INFO) << StringPrintf("%x (%04x): .word (%#x)", lir_insn->offset, lir_insn->offset, in CodegenDump()
447 static void AlignBuffer(std::vector<uint8_t>&buf, size_t offset) { in AlignBuffer() argument
448 while (buf.size() < offset) { in AlignBuffer()
534 AlignBuffer(code_buffer_, tab_rec->offset); in InstallSwitchTables()
545 bx_offset = tab_rec->anchor->offset + 4; in InstallSwitchTables()
553 bx_offset = tab_rec->anchor->offset; in InstallSwitchTables()
563 int disp = tab_rec->targets[elems]->offset - bx_offset; in InstallSwitchTables()
571 tab_rec->targets[elems]->offset - bx_offset); in InstallSwitchTables()
577 int disp = tab_rec->targets[elems]->offset - bx_offset; in InstallSwitchTables()
582 Push32(code_buffer_, tab_rec->targets[elems]->offset - bx_offset); in InstallSwitchTables()
594 AlignBuffer(code_buffer_, tab_rec->offset); in InstallFillArrayData()
602 static int AssignLiteralOffsetCommon(LIR* lir, CodeOffset offset) { in AssignLiteralOffsetCommon() argument
604 lir->offset = offset; in AssignLiteralOffsetCommon()
605 offset += 4; in AssignLiteralOffsetCommon()
607 return offset; in AssignLiteralOffsetCommon()
610 static int AssignLiteralPointerOffsetCommon(LIR* lir, CodeOffset offset, in AssignLiteralPointerOffsetCommon() argument
613 offset = RoundUp(offset, element_size); in AssignLiteralPointerOffsetCommon()
615 lir->offset = offset; in AssignLiteralPointerOffsetCommon()
616 offset += element_size; in AssignLiteralPointerOffsetCommon()
618 return offset; in AssignLiteralPointerOffsetCommon()
668 DCHECK(pc2dex_offset <= tgt_lir->offset); in CreateMappingTables()
669 pc2dex_data_size += UnsignedLeb128Size(tgt_lir->offset - pc2dex_offset); in CreateMappingTables()
672 pc2dex_offset = tgt_lir->offset; in CreateMappingTables()
677 DCHECK(dex2pc_offset <= tgt_lir->offset); in CreateMappingTables()
678 dex2pc_data_size += UnsignedLeb128Size(tgt_lir->offset - dex2pc_offset); in CreateMappingTables()
681 dex2pc_offset = tgt_lir->offset; in CreateMappingTables()
702 DCHECK(pc2dex_offset <= tgt_lir->offset); in CreateMappingTables()
703 write_pos = EncodeUnsignedLeb128(write_pos, tgt_lir->offset - pc2dex_offset); in CreateMappingTables()
706 pc2dex_offset = tgt_lir->offset; in CreateMappingTables()
710 DCHECK(dex2pc_offset <= tgt_lir->offset); in CreateMappingTables()
711 write_pos2 = EncodeUnsignedLeb128(write_pos2, tgt_lir->offset - dex2pc_offset); in CreateMappingTables()
714 dex2pc_offset = tgt_lir->offset; in CreateMappingTables()
733 CHECK_EQ(tgt_lir->offset, it.NativePcOffset()); in CreateMappingTables()
738 CHECK_EQ(tgt_lir->offset, it2.NativePcOffset()); in CreateMappingTables()
783 int Mir2Lir::AssignLiteralOffset(CodeOffset offset) { in AssignLiteralOffset() argument
784 offset = AssignLiteralOffsetCommon(literal_list_, offset); in AssignLiteralOffset()
786 offset = AssignLiteralPointerOffsetCommon(code_literal_list_, offset, ptr_size); in AssignLiteralOffset()
787 offset = AssignLiteralPointerOffsetCommon(method_literal_list_, offset, ptr_size); in AssignLiteralOffset()
788 offset = AssignLiteralPointerOffsetCommon(class_literal_list_, offset, ptr_size); in AssignLiteralOffset()
789 offset = AssignLiteralPointerOffsetCommon(string_literal_list_, offset, ptr_size); in AssignLiteralOffset()
790 return offset; in AssignLiteralOffset()
793 int Mir2Lir::AssignSwitchTablesOffset(CodeOffset offset) { in AssignSwitchTablesOffset() argument
798 tab_rec->offset = offset; in AssignSwitchTablesOffset()
800 offset += tab_rec->table[1] * (sizeof(int) * 2); in AssignSwitchTablesOffset()
804 offset += tab_rec->table[1] * sizeof(int); in AssignSwitchTablesOffset()
807 return offset; in AssignSwitchTablesOffset()
810 int Mir2Lir::AssignFillArrayDataOffset(CodeOffset offset) { in AssignFillArrayDataOffset() argument
815 tab_rec->offset = offset; in AssignFillArrayDataOffset()
816 offset += tab_rec->size; in AssignFillArrayDataOffset()
818 offset = RoundUp(offset, 4); in AssignFillArrayDataOffset()
820 return offset; in AssignFillArrayDataOffset()
929 void Mir2Lir::MarkBoundary(DexOffset offset, const char* inst_str) { in MarkBoundary() argument
1211 int offset, int check_value, LIR* target, LIR** compare) { in OpCmpMemImmBranch() argument
1213 LIR* inst = Load32Disp(base_reg, offset, temp_reg); in OpCmpMemImmBranch()