Searched defs:offset (Results 1 - 25 of 139) sorted by relevance

123456

/art/runtime/
H A Dmemory_region.cc27 void MemoryRegion::CopyFrom(size_t offset, const MemoryRegion& from) const { argument
31 CHECK_LE(offset, this->size() - from.size());
32 memmove(reinterpret_cast<void*>(start() + offset),
H A Doat_file-inl.h92 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].vmap_table_offset_; local
93 if (UNLIKELY(offset == 0u)) {
96 return reinterpret_cast<const uint8_t*>(code) - offset;
H A Dread_barrier-inl.h33 mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) {
60 offset, old_ref, ref);
66 AssertToSpaceInvariant(obj, offset, ref);
81 offset, old_ref, ref);
84 AssertToSpaceInvariant(obj, offset, ref);
200 inline void ReadBarrier::AssertToSpaceInvariant(mirror::Object* obj, MemberOffset offset, argument
207 AssertToSpaceInvariant(obj, offset, ref);
32 Barrier( mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) argument
/art/runtime/base/unix_file/
H A Drandom_access_file_utils.cc27 int64_t offset = 0; local
29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) {
30 if (dst->Write(&buf[0], n, offset) != n) {
33 offset += n;
H A Dfd_file_test.cc97 off_t offset = 0; local
99 EXPECT_TRUE(file.Write(ignore_prefix, sizeof(ignore_prefix), offset));
100 offset += sizeof(ignore_prefix);
101 EXPECT_TRUE(file.Write(read_suffix, sizeof(read_suffix), offset));
105 // Reading at an offset should only produce 'bbbb...', since we ignore the 'aaa...' prefix.
107 EXPECT_TRUE(file.PreadFully(buffer, sizeof(read_suffix), offset));
123 const size_t offset = 12; local
128 EXPECT_TRUE(file.PwriteFully(test_string, length, offset));
132 EXPECT_TRUE(file.PreadFully(&offset_read_string[0], length, offset));
/art/compiler/linker/
H A Dfile_output_stream.cc32 off_t FileOutputStream::Seek(off_t offset, Whence whence) { argument
33 return lseek(file_->Fd(), offset, static_cast<int>(whence));
H A Dvector_output_stream.cc26 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { argument
31 new_offset = offset;
35 new_offset = offset_ + offset;
39 new_offset = vector_->size() + offset;
H A Dbuffered_output_stream.cc63 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { argument
67 return out_->Seek(offset, whence);
/art/disassembler/
H A Ddisassembler.cc53 size_t offset = begin - disassembler_options_->base_address_; local
54 return StringPrintf("0x%08zx", offset);
H A Ddisassembler_arm64.cc102 int64_t offset = instr->ImmLSUnsigned() << instr->SizeLS(); local
104 Thread::DumpThreadOffset<8>(tmp_stream, static_cast<uint32_t>(offset));
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc28 jbyteArray javaData, jint offset, jint length) {
31 DCHECK_LE(offset + length, static_cast<int32_t>(data.size()));
32 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset]));
27 DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, jbyteArray javaData, jint offset, jint length) argument
H A Djava_lang_StringFactory.cc31 jint high, jint offset, jint byte_count) {
40 if ((offset | byte_count) < 0 || byte_count > data_size - offset) {
43 offset, byte_count);
48 byte_array, offset, high,
54 static jstring StringFactory_newStringFromChars(JNIEnv* env, jclass, jint offset, argument
62 char_array, offset,
30 StringFactory_newStringFromBytes(JNIEnv* env, jclass, jbyteArray java_data, jint high, jint offset, jint byte_count) argument
/art/compiler/linker/x86/
H A Drelative_patcher_x86_base.cc23 uint32_t offset,
26 return offset; // No space reserved; no limit on relative call distance.
29 uint32_t X86BaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument
30 return offset; // No space reserved; no limit on relative call distance.
33 uint32_t X86BaseRelativePatcher::WriteThunks(OutputStream* out ATTRIBUTE_UNUSED, uint32_t offset) { argument
34 return offset; // No thunks added; no limit on relative call distance.
22 ReserveSpace( uint32_t offset, const CompiledMethod* compiled_method ATTRIBUTE_UNUSED, MethodReference method_ref ATTRIBUTE_UNUSED) argument
/art/runtime/base/
H A Dhex_dump.cc38 char out[(kBitsPerIntPtrT / 4) + /* offset */
44 size_t offset; /* offset to show while printing */ local
47 offset = reinterpret_cast<size_t>(addr);
49 offset = 0;
56 size_t gap = offset & 0x0f;
58 size_t line_offset = offset & ~0x0f;
61 char* asc = out + (kBitsPerIntPtrT / 4) + /* offset */ 1 + /* colon */
105 offset += count;
H A Darray_slice.h60 uintptr_t offset = start_offset * element_size_; local
61 array_ = *reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(array) + offset);
/art/runtime/entrypoints/quick/
H A Dquick_field_entrypoints.cc639 uint32_t offset) {
641 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(obj) + offset;
648 MemberOffset(offset),
637 artReadBarrierSlow(mirror::Object* ref ATTRIBUTE_UNUSED, mirror::Object* obj, uint32_t offset) argument
/art/compiler/debug/dwarf/
H A Ddwarf_test.cc37 // Pick offset value which would catch Uleb vs Sleb errors.
38 const int offset = 40000; local
39 ASSERT_EQ(UnsignedLeb128Size(offset / 4), 2u);
40 ASSERT_EQ(SignedLeb128Size(offset / 4), 3u);
60 opcodes.DefCFA(reg, offset);
62 opcodes.DefCFA(reg, -offset);
66 opcodes.DefCFAOffset(offset);
68 opcodes.DefCFAOffset(-offset);
77 opcodes.Offset(Reg(0x3F), -offset);
81 opcodes.Offset(Reg(0x40), -offset);
[all...]
H A Dexpression.h93 void WriteOpPlusUconst(uint32_t offset) { argument
95 PushUleb128(offset);
H A Dwriter.h129 void UpdateUint32(size_t offset, uint32_t value) { argument
130 DCHECK_LT(offset + 3, data_->size());
131 (*data_)[offset + 0] = (value >> 0) & 0xFF;
132 (*data_)[offset + 1] = (value >> 8) & 0xFF;
133 (*data_)[offset + 2] = (value >> 16) & 0xFF;
134 (*data_)[offset + 3] = (value >> 24) & 0xFF;
137 void UpdateUint64(size_t offset, uint64_t value) { argument
138 DCHECK_LT(offset + 7, data_->size());
139 (*data_)[offset + 0] = (value >> 0) & 0xFF;
140 (*data_)[offset
149 UpdateUleb128(size_t offset, uint32_t value) argument
[all...]
/art/compiler/trampolines/
H A Dtrampoline_compiler.cc53 ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<4> offset) {
58 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value());
62 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value());
65 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value());
83 ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<8> offset) {
88 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()),
97 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()),
102 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()),
122 ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<4> offset) {
127 __ LoadFromOffset(kLoadWord, T9, A0, offset
52 CreateTrampoline( ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
82 CreateTrampoline( ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<8> offset) argument
121 CreateTrampoline( ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
153 CreateTrampoline( ArenaAllocator* arena, EntryPointCallingConvention abi, ThreadOffset<8> offset) argument
185 CreateTrampoline(ArenaAllocator* arena, ThreadOffset<4> offset) argument
206 CreateTrampoline(ArenaAllocator* arena, ThreadOffset<8> offset) argument
225 CreateTrampoline64(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<8> offset) argument
251 CreateTrampoline32(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
[all...]
/art/runtime/mirror/
H A Dfield.h128 void SetOffset(uint32_t offset) SHARED_REQUIRES(Locks::mutator_lock_) {
129 SetField32<kTransactionActive>(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); local
135 friend struct art::FieldOffsets; // for verifying offset information
/art/compiler/
H A Dcompiled_method.cc49 size_t CompiledCode::AlignCode(size_t offset) const {
50 return AlignCode(offset, instruction_set_);
53 size_t CompiledCode::AlignCode(size_t offset, InstructionSet instruction_set) { argument
54 return RoundUp(offset, GetInstructionSetAlignment(instruction_set));
H A Dexception_test.cc88 size_t offset = dchecked_integral_cast<size_t>(reinterpret_cast<uintptr_t>(unaligned_code_ptr)); local
89 size_t padding = RoundUp(offset, alignment) - offset;
179 // Create three fake stack frames with mapping data created in SetUp. We map offset 3 in the
/art/compiler/jni/quick/mips/
H A Dcalling_convention_mips.cc89 (itr_slots_ * kFramePointerSize)); // offset into in args
239 size_t offset = displacement_.Int32Value() - OutArgSize() + (itr_slots_ * kFramePointerSize); local
240 CHECK_LT(offset, OutArgSize());
241 return FrameOffset(offset);
/art/compiler/jni/quick/mips64/
H A Dcalling_convention_mips64.cc89 (itr_slots_ * sizeof(uint32_t))); // offset into in args
184 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_args_ - 8) * kFramePointerSize); local
185 CHECK_LT(offset, OutArgSize());
186 return FrameOffset(offset);

Completed in 3717 milliseconds

123456