Searched defs:offset (Results 26 - 50 of 139) sorted by relevance

123456

/art/compiler/jni/quick/x86_64/
H A Dcalling_convention_x86_64.cc101 itr_slots_ * sizeof(uint32_t)); // offset into in args
191 size_t offset = itr_args_ local
194 return FrameOffset(displacement_.Int32Value() - OutArgSize() + (offset * kFramePointerSize));
/art/compiler/linker/arm/
H A Drelative_patcher_arm_base.cc27 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, argument
30 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u);
33 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument
37 // offset after reserving of writing any chunk.
38 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_);
49 offset = CompiledMethod::AlignCode(aligned_offset + thunk_code_.size(), instruction_set_);
51 return offset;
54 uint32_t ArmBaseRelativePatcher::WriteThunks(OutputStream* out, uint32_t offset) { argument
56 return offset;
58 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set
90 ReserveSpaceInternal(uint32_t offset, const CompiledMethod* compiled_method, MethodReference method_ref, uint32_t max_extra_space) argument
[all...]
H A Drelative_patcher_thumb2.cc96 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { argument
97 DCHECK_LE(offset + 4u, code->size());
98 DCHECK_EQ(offset & 1u, 0u);
99 uint8_t* addr = &(*code)[offset];
106 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { argument
107 DCHECK_LE(offset + 4u, code.size());
108 DCHECK_EQ(offset & 1u, 0u);
109 const uint8_t* addr = &code[offset];
118 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { argument
120 return GetInsn32(ArrayRef<const uint8_t>(*code), offset);
[all...]
/art/compiler/linker/
H A Dmulti_oat_relative_patcher.h48 // The adjustment should be the global offset of the base from which relative
51 // with value 0 because this value is used as a missing offset indication in
56 // Get relative offset. Returns 0 when the offset has not been set yet.
62 // Set the offset.
63 void SetOffset(MethodReference method_ref, uint32_t offset) { argument
64 method_offset_map_.map.Put(method_ref, offset + adjustment_);
67 // Wrapper around RelativePatcher::ReserveSpace(), doing offset adjustment.
68 uint32_t ReserveSpace(uint32_t offset, argument
71 offset
78 ReserveSpaceEnd(uint32_t offset) argument
86 WriteThunks(OutputStream* out, uint32_t offset) argument
[all...]
/art/compiler/optimizing/
H A Dinstruction_simplifier_arm64.cc58 HIntConstant* offset = local
61 new (arena) HArm64IntermediateAddress(array, offset, kNoDexPc);
H A Dnodes_arm64.h102 HArm64IntermediateAddress(HInstruction* base_address, HInstruction* offset, uint32_t dex_pc) argument
105 SetRawInputAt(1, offset);
/art/compiler/utils/arm/
H A Dassembler_thumb2_test.cc284 int32_t offset = 4092; local
285 ASSERT_TRUE(arm::Address::CanHoldStoreOffsetThumb(type, offset));
287 __ StoreToOffset(type, arm::R0, arm::SP, offset);
288 __ StoreToOffset(type, arm::IP, arm::SP, offset);
289 __ StoreToOffset(type, arm::IP, arm::R5, offset);
300 int32_t offset = 4096; local
301 ASSERT_FALSE(arm::Address::CanHoldStoreOffsetThumb(type, offset));
303 __ StoreToOffset(type, arm::R0, arm::SP, offset);
304 __ StoreToOffset(type, arm::IP, arm::SP, offset);
305 __ StoreToOffset(type, arm::IP, arm::R5, offset);
325 int32_t offset = 1020; local
349 int32_t offset = 1024; local
[all...]
/art/disassembler/
H A Ddisassembler_mips.cc435 case 'B': // Branch offset.
437 int32_t offset = static_cast<int16_t>(instruction & 0xffff); local
438 offset <<= 2;
439 offset += 4; // Delay slot.
440 args << FormatInstructionPointer(instr_ptr + offset)
441 << StringPrintf(" ; %+d", offset);
444 case 'b': // 21-bit branch offset.
446 int32_t offset = (instruction & 0x1fffff) - ((instruction & 0x100000) << 1); local
447 offset <<= 2;
448 offset
492 int32_t offset = static_cast<int16_t>(instruction) >> 7; local
498 int32_t offset = static_cast<int16_t>(instruction & 0xffff); local
512 int32_t offset = (instruction & 0x3ffffff) - ((instruction & 0x2000000) << 1); local
521 int32_t offset = (instruction & 0x7ffff) - ((instruction & 0x40000) << 1); local
554 uint32_t offset = (last_instr_ << 16) | (instruction & 0xFFFF); local
[all...]
/art/runtime/base/unix_file/
H A Drandom_access_file_test.h58 int64_t offset = 0; local
59 while ((n = f->Read(buf, sizeof(buf), offset)) > 0) {
61 offset += n;
86 // Can't read from a negative offset.
144 // Can't write to a negative offset.
/art/runtime/
H A Ddex_file-inl.h45 inline const DexFile::TryItem* DexFile::GetTryItems(const CodeItem& code_item, uint32_t offset) { argument
48 (RoundUp(reinterpret_cast<uintptr_t>(insns_end_), 4)) + offset;
/art/runtime/gc/accounting/
H A Dbitmap.h48 // offset is the difference from base to a index.
49 static ALWAYS_INLINE constexpr size_t BitIndexToWordIndex(uintptr_t offset) { argument
50 return offset / kBitsPerBitmapWord;
H A Dcard_table.cc78 // kCardDirty, compute a offset value to make this the case
79 size_t offset = 0; local
85 offset = delta + (delta < 0 ? 0x100 : 0);
86 biased_begin += offset;
89 return new CardTable(mem_map.release(), biased_begin, offset);
92 CardTable::CardTable(MemMap* mem_map, uint8_t* biased_begin, size_t offset) argument
93 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) {
H A Dcard_table_test.cc65 size_t offset = RoundDown(addr - heap_begin_, CardTable::kCardSize); local
66 return 1 + offset % 254;
H A Dspace_bitmap-inl.h36 const uintptr_t offset = addr - heap_begin_; local
37 const size_t index = OffsetToIndex(offset);
38 const uintptr_t mask = OffsetToMask(offset);
60 const uintptr_t offset = addr - heap_begin_; local
61 return (bitmap_begin_[OffsetToIndex(offset)] & OffsetToMask(offset)) != 0;
163 const uintptr_t offset = addr - heap_begin_; local
164 const size_t index = OffsetToIndex(offset);
165 const uintptr_t mask = OffsetToMask(offset);
H A Dspace_bitmap.h59 // <offset> is the difference from .base to a pointer address.
61 // <offset>.
62 static constexpr size_t OffsetToIndex(size_t offset) { argument
63 return offset / kAlignment / kBitsPerIntPtrT;
72 static constexpr uintptr_t OffsetToMask(uintptr_t offset) { argument
73 return (static_cast<size_t>(1)) << ((offset / kAlignment) % kBitsPerIntPtrT);
95 // If obj < heap_begin_ then offset underflows to some very large value past the end of the
97 const uintptr_t offset = reinterpret_cast<uintptr_t>(obj) - heap_begin_; local
98 const size_t index = OffsetToIndex(offset);
H A Dspace_bitmap_test.cc127 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); variable
131 space_bitmap->Set(reinterpret_cast<mirror::Object*>(heap_begin + offset));
133 space_bitmap->Clear(reinterpret_cast<mirror::Object*>(heap_begin + offset));
141 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); variable
142 size_t remain = heap_capacity - offset;
143 size_t end = offset + RoundDown(r.next() % (remain + 1), kAlignment);
145 space_bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(heap_begin) + offset,
149 for (uintptr_t k = offset; k < end; k += kAlignment) {
/art/test/004-checker-UnsafeTest18/src/
H A DMain.java53 private static int set32(Object o, long offset, int newValue) { argument
54 return unsafe.getAndSetInt(o, offset, newValue);
60 private static long set64(Object o, long offset, long newValue) { argument
61 return unsafe.getAndSetLong(o, offset, newValue);
67 private static Object setObj(Object o, long offset, Object newValue) { argument
68 return unsafe.getAndSetObject(o, offset, newValue);
78 private static int add32(Object o, long offset, int delta) { argument
79 return unsafe.getAndAddInt(o, offset, delta);
85 private static long add64(Object o, long offset, long delta) { argument
86 return unsafe.getAndAddLong(o, offset, delt
[all...]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DMapItem.java43 public Offset offset; field in class:MapItem
51 offset = file.getOffsetTracker().getNewHeaderOffset(file.readUInt());
53 offset = file.getOffsetTracker().getNewOffset(file.readUInt());
62 file.getOffsetTracker().tryToWriteOffset(offset, file, false /* ULEB128 */);
H A DOffset.java23 * The absolute value of this offset as it was originally read.
169 * Get the location in the output DEX file where this offset has been written.
180 public void setOriginalOffset(int offset) { argument
181 originalOffset = offset;
/art/compiler/
H A Dcommon_compiler_test.cc79 size_t offset = dchecked_integral_cast<size_t>(reinterpret_cast<uintptr_t>(unaligned_code_ptr)); local
80 size_t padding = compiled_method->AlignCode(offset) - offset;
/art/compiler/debug/dwarf/
H A Ddebug_frame_opcode_writer.h73 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { argument
74 Offset(reg, offset - current_cfa_offset_);
83 void ALWAYS_INLINE RelOffsetForMany(Reg reg_base, int offset, argument
92 RelOffset(Reg(reg_base.num() + i), offset); local
93 offset += reg_size;
117 void ALWAYS_INLINE Offset(Reg reg, int offset) { argument
120 int factored_offset = FactorDataOffset(offset); // May change sign.
191 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { argument
194 if (offset >= 0) {
197 this->PushUleb128(offset); // No
216 DefCFAOffset(int offset) argument
234 ValOffset(Reg reg, int offset) argument
296 SetCurrentCFAOffset(int offset) argument
[all...]
H A Ddebug_info_entry_writer.h52 // Returns offset of the entry in compilation unit.
127 void WriteSecOffset(Attribute attrib, uint32_t offset) { argument
129 this->PushUint32(offset);
/art/compiler/debug/
H A Delf_debug_line_writer.h267 size_t offset = builder_->GetDebugLine()->GetSize(); local
268 WriteDebugLineTable(directories, files, opcodes, offset, &buffer, &debug_line_patches_);
/art/compiler/jni/quick/arm/
H A Dcalling_convention_arm.cc122 (itr_slots_ * kFramePointerSize)); // offset into in args
312 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_slots_ - 4) * kFramePointerSize); local
313 CHECK_LT(offset, OutArgSize());
314 return FrameOffset(offset);
/art/compiler/jni/quick/arm64/
H A Dcalling_convention_arm64.cc104 (itr_slots_ * sizeof(uint32_t))); // offset into in args
127 } else { // just increase the stack offset.
142 } else { // just increase the stack offset.
258 size_t offset = displacement_.Int32Value() - OutArgSize() + (args_on_stack * kFramePointerSize); local
259 CHECK_LT(offset, OutArgSize());
260 return FrameOffset(offset);

Completed in 1682 milliseconds

123456