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

12345

/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 Dread_barrier-inl.h28 mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) {
31 UNUSED(offset);
27 Barrier( mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) argument
H A Doat_file-inl.h86 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].gc_map_offset_; local
87 if (UNLIKELY(offset == 0u)) {
90 return reinterpret_cast<const uint8_t*>(code) - offset;
137 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].mapping_table_offset_; local
138 if (UNLIKELY(offset == 0u)) {
141 return reinterpret_cast<const uint8_t*>(code) - offset;
149 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].vmap_table_offset_; local
150 if (UNLIKELY(offset == 0u)) {
153 return reinterpret_cast<const uint8_t*>(code) - offset;
H A Dutf.cc71 int32_t ComputeUtf16Hash(mirror::CharArray* chars, int32_t offset, argument
75 hash = hash * 31 + chars->Get(offset + i);
/art/disassembler/
H A Ddisassembler.cc51 size_t offset = begin - disassembler_options_->base_address_; local
52 return StringPrintf("0x%08zx", offset);
H A Ddisassembler_mips.cc195 case 'B': // Branch offset.
197 int32_t offset = static_cast<int16_t>(instruction & 0xffff); local
198 offset <<= 2;
199 offset += 4; // Delay slot.
200 args << FormatInstructionPointer(instr_ptr + offset)
201 << StringPrintf(" ; %+d", offset);
237 int32_t offset = static_cast<int16_t>(instruction & 0xffff); local
238 args << StringPrintf("%+d(r%d)", offset, rs);
241 Thread::DumpThreadOffset<4>(args, offset);
/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 Dnull_file.cc36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
37 if (offset < 0) {
54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument
55 if (offset < 0) {
H A Dstring_file.cc38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const {
42 if (offset < 0) {
46 const int64_t available_bytes = std::min(byte_count, GetLength() - offset);
50 memcpy(buf, data_.data() + offset, available_bytes);
66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { argument
70 if (offset < 0) {
81 const int64_t bytes_past_end = offset - GetLength();
86 data_.replace(offset, byte_count, buf, byte_count);
H A Dmapped_file.cc112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
114 if (offset < 0) {
119 std::min(byte_count, file_size_ - offset));
121 memcpy(buf, data() + offset, read_size);
125 return FdFile::Read(buf, byte_count, offset);
148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument
151 if (offset < 0) {
156 std::min(byte_count, file_size_ - offset));
158 memcpy(data() + offset, buf, write_size);
163 return FdFile::Write(buf, byte_count, offset);
[all...]
/art/compiler/
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.cc52 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { argument
56 return out_->Seek(offset, whence);
H A Delf_stripper.cc41 // | Elf32_Ehdr | contains number of Elf32_Shdr and offset to first
58 // | ... | contains offset to section start
98 // section 0 is the NULL section, sections start at offset of first section
100 Elf32_Off offset = elf_file->GetSectionHeader(1)->sh_offset; local
107 offset = RoundUp(offset, old_sh->sh_addralign);
109 if (old_sh->sh_offset == offset) {
111 offset += old_sh->sh_size;
115 memmove(elf_file->Begin() + offset,
118 new_sh.sh_offset = offset;
[all...]
H A Dcompiled_method.cc78 uint32_t CompiledCode::AlignCode(uint32_t offset) const {
79 return AlignCode(offset, instruction_set_);
82 uint32_t CompiledCode::AlignCode(uint32_t offset, InstructionSet instruction_set) { argument
83 return RoundUp(offset, GetInstructionSetAlignment(instruction_set));
139 void CompiledCode::AddOatdataOffsetToCompliledCodeOffset(uint32_t offset) { argument
140 oatdata_offsets_to_compiled_code_offset_.push_back(offset);
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc25 jbyteArray javaData, jint offset, jint length) {
28 DCHECK_LE(offset + length, static_cast<int32_t>(data.size()));
29 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset]));
24 DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, jbyteArray javaData, jint offset, jint length) argument
/art/compiler/llvm/
H A Druntime_support_builder_x86.cc54 Value* RuntimeSupportBuilderX86::EmitLoadFromThreadOffset(int64_t offset, Type* type, argument
58 std::string inline_asm(StringPrintf("mov %%fs:%d, $0", static_cast<int>(offset)));
66 void RuntimeSupportBuilderX86::EmitStoreToThreadOffset(int64_t offset, Value* value, argument
71 std::string inline_asm(StringPrintf("mov $0, %%fs:%d", static_cast<int>(offset)));
H A Druntime_support_builder_arm.cc71 Value* RuntimeSupportBuilderARM::EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type, argument
77 static_cast<int>(offset)));
85 void RuntimeSupportBuilderARM::EmitStoreToThreadOffset(int64_t offset, Value* value, argument
92 static_cast<int>(offset)));
/art/compiler/trampolines/
H A Dtrampoline_compiler.cc32 ThreadOffset<4> offset) {
37 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value());
41 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value());
45 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value());
60 ThreadOffset<8> offset) {
65 __ JumpTo(Arm64ManagedRegister::FromCoreRegister(X0), Offset(offset.Int32Value()),
74 __ JumpTo(Arm64ManagedRegister::FromCoreRegister(IP1), Offset(offset.Int32Value()),
80 __ JumpTo(Arm64ManagedRegister::FromCoreRegister(TR), Offset(offset.Int32Value()),
97 ThreadOffset<4> offset) {
102 __ LoadFromOffset(kLoadWord, T9, A0, offset
31 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
59 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<8> offset) argument
96 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
126 CreateTrampoline(ThreadOffset<4> offset) argument
143 CreateTrampoline(ThreadOffset<8> offset) argument
160 CreateTrampoline64(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<8> offset) argument
173 CreateTrampoline32(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<4> offset) argument
[all...]
/art/runtime/base/
H A Dhex_dump.cc38 char out[(kBitsPerWord / 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 + (kBitsPerWord / 4) + /* offset */ 1 + /* colon */
105 offset += count;
/art/runtime/gc/accounting/
H A Dcard_table_test.cc62 size_t offset = RoundDown(addr - heap_begin_, kCardSize); local
63 return 1 + offset % 254;
/art/compiler/jni/quick/arm/
H A Dcalling_convention_arm.cc84 (itr_slots_ * kFramePointerSize)); // offset into in args
199 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_slots_ - 4) * kFramePointerSize); local
200 CHECK_LT(offset, OutArgSize());
201 return FrameOffset(offset);
/art/compiler/jni/quick/arm64/
H A Dcalling_convention_arm64.cc99 (itr_slots_ * sizeof(uint32_t))); // offset into in args
122 } else { // just increase the stack offset.
137 } else { // just increase the stack offset.
247 size_t offset = displacement_.Int32Value() - OutArgSize() + (args_on_stack * kFramePointerSize); local
248 CHECK_LT(offset, OutArgSize());
249 return FrameOffset(offset);
/art/compiler/jni/quick/mips/
H A Dcalling_convention_mips.cc84 (itr_slots_ * kFramePointerSize)); // offset into in args
202 size_t offset = displacement_.Int32Value() - OutArgSize() + (itr_slots_ * kFramePointerSize); local
203 CHECK_LT(offset, OutArgSize());
204 return FrameOffset(offset);
/art/compiler/jni/quick/x86_64/
H A Dcalling_convention_x86_64.cc100 (itr_slots_ * sizeof(uint32_t))); // offset into in args
190 size_t offset = itr_args_ local
193 return FrameOffset(displacement_.Int32Value() - OutArgSize() + (offset * kFramePointerSize));

Completed in 4144 milliseconds

12345