/art/runtime/ |
H A D | memory_region.cc | 27 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 D | oat_file-inl.h | 86 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 D | read_barrier-inl.h | 33 mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) { 52 AssertToSpaceInvariant(obj, offset, ref); 66 offset, old_ref, ref); 68 AssertToSpaceInvariant(obj, offset, ref); 175 inline void ReadBarrier::AssertToSpaceInvariant(mirror::Object* obj, MemberOffset offset, argument 182 AssertToSpaceInvariant(obj, offset, ref); 32 Barrier( mirror::Object* obj, MemberOffset offset, mirror::HeapReference<MirrorType>* ref_addr) argument
|
/art/disassembler/ |
H A D | disassembler.cc | 53 size_t offset = begin - disassembler_options_->base_address_; local 54 return StringPrintf("0x%08zx", offset);
|
H A D | disassembler_arm64.cc | 95 int64_t offset = instr->ImmLSUnsigned() << instr->SizeLS(); local 97 Thread::DumpThreadOffset<8>(tmp_stream, static_cast<uint32_t>(offset));
|
/art/runtime/base/unix_file/ |
H A D | random_access_file_utils.cc | 27 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 D | fd_file_test.cc | 97 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));
|
/art/compiler/ |
H A D | file_output_stream.cc | 32 off_t FileOutputStream::Seek(off_t offset, Whence whence) { argument 33 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
H A D | vector_output_stream.cc | 26 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 D | buffered_output_stream.cc | 52 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { argument 56 return out_->Seek(offset, whence);
|
H A D | compiled_method.cc | 62 size_t CompiledCode::AlignCode(size_t offset) const { 63 return AlignCode(offset, instruction_set_); 66 size_t CompiledCode::AlignCode(size_t offset, InstructionSet instruction_set) { argument 67 return RoundUp(offset, GetInstructionSetAlignment(instruction_set)); 120 void CompiledCode::AddOatdataOffsetToCompliledCodeOffset(uint32_t offset) { argument 121 oatdata_offsets_to_compiled_code_offset_.push_back(offset);
|
/art/compiler/utils/arm/ |
H A D | assembler_thumb2_test.cc | 252 int32_t offset = 4092; local 253 ASSERT_TRUE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); 255 __ StoreToOffset(type, arm::R0, arm::SP, offset); 256 __ StoreToOffset(type, arm::IP, arm::SP, offset); 257 __ StoreToOffset(type, arm::IP, arm::R5, offset); 268 int32_t offset = 4096; local 269 ASSERT_FALSE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); 271 __ StoreToOffset(type, arm::R0, arm::SP, offset); 272 __ StoreToOffset(type, arm::IP, arm::SP, offset); 273 __ StoreToOffset(type, arm::IP, arm::R5, offset); 296 int32_t offset = 1020; local 320 int32_t offset = 1024; local [all...] |
/art/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 28 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 D | java_lang_StringFactory.cc | 31 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, 53 static jstring StringFactory_newStringFromChars(JNIEnv* env, jclass, jint offset, argument 60 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 D | relative_patcher_x86_base.cc | 23 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/compiler/trampolines/ |
H A D | trampoline_compiler.cc | 33 ThreadOffset<4> offset) { 38 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value()); 42 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value()); 45 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value()); 60 ThreadOffset<8> offset) { 65 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()), 74 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()), 79 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()), 97 ThreadOffset<4> offset) { 102 __ LoadFromOffset(kLoadWord, T9, A0, offset 32 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<4> offset) argument 59 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<8> offset) argument 96 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<4> offset) argument 125 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset<8> offset) argument 154 CreateTrampoline(ThreadOffset<4> offset) argument 171 CreateTrampoline(ThreadOffset<8> offset) argument 188 CreateTrampoline64(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<8> offset) argument 203 CreateTrampoline32(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset<4> offset) argument [all...] |
/art/runtime/base/ |
H A D | hex_dump.cc | 38 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;
|
/art/compiler/dwarf/ |
H A D | dwarf_test.cc | 37 // 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 D | writer.h | 124 void UpdateUint32(size_t offset, uint32_t value) { argument 125 DCHECK_LT(offset + 3, data_->size()); 126 (*data_)[offset + 0] = (value >> 0) & 0xFF; 127 (*data_)[offset + 1] = (value >> 8) & 0xFF; 128 (*data_)[offset + 2] = (value >> 16) & 0xFF; 129 (*data_)[offset + 3] = (value >> 24) & 0xFF; 132 void UpdateUint64(size_t offset, uint64_t value) { argument 133 DCHECK_LT(offset + 7, data_->size()); 134 (*data_)[offset + 0] = (value >> 0) & 0xFF; 135 (*data_)[offset 144 UpdateUleb128(size_t offset, uint32_t value) argument [all...] |
/art/runtime/mirror/ |
H A D | field.h | 128 void SetOffset(uint32_t offset) SHARED_LOCKS_REQUIRED(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/jni/quick/mips/ |
H A D | calling_convention_mips.cc | 85 (itr_slots_ * kFramePointerSize)); // offset into in args 203 size_t offset = displacement_.Int32Value() - OutArgSize() + (itr_slots_ * kFramePointerSize); local 204 CHECK_LT(offset, OutArgSize()); 205 return FrameOffset(offset);
|
/art/compiler/jni/quick/mips64/ |
H A D | calling_convention_mips64.cc | 89 (itr_slots_ * sizeof(uint32_t))); // offset into in args 183 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_args_ - 8) * kFramePointerSize); local 184 CHECK_LT(offset, OutArgSize()); 185 return FrameOffset(offset);
|
/art/compiler/jni/quick/x86_64/ |
H A D | calling_convention_x86_64.cc | 102 itr_slots_ * sizeof(uint32_t)); // offset into in args 192 size_t offset = itr_args_ local 195 return FrameOffset(displacement_.Int32Value() - OutArgSize() + (offset * kFramePointerSize));
|
/art/compiler/linker/arm/ |
H A D | relative_patcher_arm_base.cc | 26 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, argument 29 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); 32 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument 36 // offset after reserving of writing any chunk. 37 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); 42 offset = CompiledMethod::AlignCode(aligned_offset + thunk_code_.size(), instruction_set_); 44 return offset; 47 uint32_t ArmBaseRelativePatcher::WriteThunks(OutputStream* out, uint32_t offset) { argument 49 return offset; 51 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set 83 ReserveSpaceInternal(uint32_t offset, const CompiledMethod* compiled_method, MethodReference method_ref, uint32_t max_extra_space) argument [all...] |
H A D | relative_patcher_thumb2.cc | 91 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { argument 92 DCHECK_LE(offset + 4u, code->size()); 93 DCHECK_EQ(offset & 1u, 0u); 94 uint8_t* addr = &(*code)[offset]; 101 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { argument 102 DCHECK_LE(offset + 4u, code.size()); 103 DCHECK_EQ(offset & 1u, 0u); 104 const uint8_t* addr = &code[offset]; 113 uint32_t Thumb2RelativePatcher::GetInsn32(std::vector<uint8_t, Alloc>* code, uint32_t offset) { argument 114 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); [all...] |