Searched refs:offset (Results 1 - 25 of 172) sorted by relevance

1234567

/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 Drandom_access_file.h29 // must specify an offset). This interface does not imply any buffering policy.
43 // Reads 'byte_count' bytes into 'buf' starting at offset 'offset' in the
45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0;
56 // Writes 'byte_count' bytes from 'buf' starting at offset 'offset' in the
60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
H A Dnull_file.h39 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const;
42 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
H A Dstring_file.h42 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const;
45 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
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/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.cc185 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { argument
186 CHECK(offset == 0 || offset >= executable_offset_);
188 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset;
190 interpreter_to_interpreter_bridge_offset_ = offset;
191 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset));
204 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { argument
205 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_);
207 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset;
223 SetJniDlsymLookupOffset(uint32_t offset) argument
242 SetPortableImtConflictTrampolineOffset(uint32_t offset) argument
261 SetPortableResolutionTrampolineOffset(uint32_t offset) argument
280 SetPortableToInterpreterBridgeOffset(uint32_t offset) argument
299 SetQuickGenericJniTrampolineOffset(uint32_t offset) argument
318 SetQuickImtConflictTrampolineOffset(uint32_t offset) argument
337 SetQuickResolutionTrampolineOffset(uint32_t offset) argument
356 SetQuickToInterpreterBridgeOffset(uint32_t offset) argument
[all...]
H A Dmemory_region.h47 template<typename T> T Load(uintptr_t offset) const {
48 return *ComputeInternalPointer<T>(offset);
51 template<typename T> void Store(uintptr_t offset, T value) const { argument
52 *ComputeInternalPointer<T>(offset) = value;
55 template<typename T> T* PointerTo(uintptr_t offset) const {
56 return ComputeInternalPointer<T>(offset);
59 // Load a single bit in the region. The bit at offset 0 is the least
77 void CopyFrom(size_t offset, const MemoryRegion& from) const;
80 MemoryRegion Subregion(uintptr_t offset, uintptr_t size) const { argument
82 CHECK_LE(offset, thi
[all...]
H A Doat.h60 void SetInterpreterToInterpreterBridgeOffset(uint32_t offset);
63 void SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset);
67 void SetJniDlsymLookupOffset(uint32_t offset);
71 void SetPortableResolutionTrampolineOffset(uint32_t offset);
74 void SetPortableImtConflictTrampolineOffset(uint32_t offset);
77 void SetPortableToInterpreterBridgeOffset(uint32_t offset);
81 void SetQuickGenericJniTrampolineOffset(uint32_t offset);
84 void SetQuickResolutionTrampolineOffset(uint32_t offset);
87 void SetQuickImtConflictTrampolineOffset(uint32_t offset);
90 void SetQuickToInterpreterBridgeOffset(uint32_t offset);
[all...]
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;
/art/compiler/
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 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 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 Doat_writer.cc97 size_t offset; local
100 offset = InitOatHeader();
104 offset = InitOatDexFiles(offset);
108 offset = InitDexFiles(offset);
112 offset = InitOatClasses(offset);
116 offset = InitOatMaps(offset);
146 uint32_t offset = oat_class->method_headers_[method_offsets_index].gc_map_offset_; variable
168 uint32_t offset = oat_class->method_headers_[method_offsets_index].mapping_table_offset_; variable
190 uint32_t offset = oat_class->method_headers_[method_offsets_index].vmap_table_offset_; variable
208 DexMethodVisitor(OatWriter* writer, size_t offset) argument
252 OatDexMethodVisitor(OatWriter* writer, size_t offset) argument
277 InitOatClassesMethodVisitor(OatWriter* writer, size_t offset) argument
332 InitCodeMethodVisitor(OatWriter* writer, size_t offset) argument
535 InitImageMethodVisitor(OatWriter* writer, size_t offset) argument
753 InitOatDexFiles(size_t offset) argument
765 InitDexFiles(size_t offset) argument
782 InitOatClasses(size_t offset) argument
804 InitOatMaps(size_t offset) argument
822 InitOatCode(size_t offset) argument
869 InitOatCodeDexFiles(size_t offset) argument
1096 OatDexFile(size_t offset, const DexFile& dex_file) argument
1157 OatClass(size_t offset, const std::vector<CompiledMethod*>& compiled_methods, uint32_t num_non_null_compiled_methods, mirror::Class::Status status) argument
[all...]
H A Dfile_output_stream.h34 virtual off_t Seek(off_t offset, Whence whence);
H A Dbuffered_output_stream.cc52 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { argument
56 return out_->Seek(offset, whence);
/art/runtime/native/
H A Dsun_misc_Unsafe.cc26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, argument
31 bool success = obj->CasFieldStrongSequentiallyConsistent32<false>(MemberOffset(offset),
36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, argument
41 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset),
46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, argument
53 bool success = obj->CasFieldStrongSequentiallyConsistentObject<false>(MemberOffset(offset),
58 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { argument
61 return obj->GetField32(MemberOffset(offset));
64 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { argument
67 return obj->GetField32Volatile(MemberOffset(offset));
70 Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
77 Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
85 Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
94 Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
100 Unsafe_getLongVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
106 Unsafe_putLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
113 Unsafe_putLongVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
121 Unsafe_putOrderedLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
130 Unsafe_getObjectVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
137 Unsafe_getObject(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
144 Unsafe_putObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaNewValue) argument
153 Unsafe_putObjectVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaNewValue) argument
162 Unsafe_putOrderedObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaNewValue) argument
[all...]
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/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/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/compiler/llvm/
H A Druntime_support_builder_arm.h32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
H A Druntime_support_builder_x86.h32 virtual ::llvm::Value* EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type,
34 virtual void EmitStoreToThreadOffset(int64_t offset, ::llvm::Value* value,
/art/runtime/gc/accounting/
H A Dcard_table.cc75 // kCardDirty, compute a offset value to make this the case
76 size_t offset = 0; local
82 offset = delta + (delta < 0 ? 0x100 : 0);
83 biased_begin += offset;
86 return new CardTable(mem_map.release(), biased_begin, offset);
89 CardTable::CardTable(MemMap* mem_map, byte* biased_begin, size_t offset) argument
90 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) {

Completed in 241 milliseconds

1234567