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

123456

/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.cc98 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
100 if (offset < 0) {
104 int64_t read_size = std::max(0LL, std::min(byte_count, file_size_ - offset));
106 memcpy(buf, data() + offset, read_size);
110 return FdFile::Read(buf, byte_count, offset);
132 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument
135 if (offset < 0) {
139 int64_t write_size = std::max(0LL, std::min(byte_count, file_size_ - offset));
141 memcpy(data() + offset, buf, write_size);
145 return FdFile::Write(buf, byte_count, offset);
[all...]
/art/runtime/
H A Doat.cc127 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { argument
128 CHECK(offset == 0 || offset >= executable_offset_);
130 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset;
132 interpreter_to_interpreter_bridge_offset_ = offset;
133 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset));
146 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { argument
147 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_);
149 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset;
165 SetJniDlsymLookupOffset(uint32_t offset) argument
184 SetPortableResolutionTrampolineOffset(uint32_t offset) argument
203 SetPortableToInterpreterBridgeOffset(uint32_t offset) argument
222 SetQuickResolutionTrampolineOffset(uint32_t offset) argument
241 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 void CopyFrom(size_t offset, const MemoryRegion& from) const;
62 void Subregion(const MemoryRegion& from, uintptr_t offset, uintptr_t size) { argument
64 CHECK_LE(offset, from.size() - size);
65 pointer_ = reinterpret_cast<void*>(from.start() + offset);
[all...]
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 Ddex_file_verifier.h50 bool CheckPadding(uint32_t offset, uint32_t aligned_offset);
62 bool CheckIntraSectionIterate(uint32_t offset, uint32_t count, uint16_t type);
63 bool CheckIntraIdSection(uint32_t offset, uint32_t count, uint16_t type);
64 bool CheckIntraDataSection(uint32_t offset, uint32_t count, uint16_t type);
67 bool CheckOffsetToTypeMap(uint32_t offset, uint16_t type);
82 bool CheckInterSectionIterate(uint32_t offset, uint32_t count, uint16_t type);
H A Doat.h53 void SetInterpreterToInterpreterBridgeOffset(uint32_t offset);
56 void SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset);
60 void SetJniDlsymLookupOffset(uint32_t offset);
64 void SetPortableResolutionTrampolineOffset(uint32_t offset);
67 void SetPortableToInterpreterBridgeOffset(uint32_t offset);
71 void SetQuickResolutionTrampolineOffset(uint32_t offset);
74 void SetQuickToInterpreterBridgeOffset(uint32_t 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.cc37 // | Elf32_Ehdr | contains number of Elf32_Shdr and offset to first
54 // | ... | contains offset to section start
92 // section 0 is the NULL section, sections start at offset of first section
93 llvm::ELF::Elf32_Off offset = elf_file->GetSectionHeader(1).sh_offset; local
99 offset = RoundUp(offset, old_sh.sh_addralign);
101 if (old_sh.sh_offset == offset) {
103 offset += old_sh.sh_size;
107 memmove(elf_file->Begin() + offset,
110 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.cc75 size_t offset = InitOatHeader(); local
76 offset = InitOatDexFiles(offset);
77 offset = InitDexFiles(offset);
78 offset = InitOatClasses(offset);
79 offset = InitOatCode(offset);
80 offset
100 size_t offset = sizeof(*oat_header_); local
105 InitOatDexFiles(size_t offset) argument
117 InitDexFiles(size_t offset) argument
134 InitOatClasses(size_t offset) argument
173 InitOatCode(size_t offset) argument
210 InitOatCodeDexFiles(size_t offset) argument
220 InitOatCodeDexFile(size_t offset, size_t& oat_class_index, const DexFile& dex_file) argument
233 InitOatCodeClassDef(size_t offset, size_t oat_class_index, size_t class_def_index, const DexFile& dex_file, const DexFile::ClassDef& class_def) argument
274 InitOatCodeMethod(size_t offset, size_t oat_class_index, size_t __attribute__((unused)) class_def_index, size_t class_def_method_index, bool __attribute__((unused)) is_native, InvokeType invoke_type, uint32_t method_idx, const DexFile* dex_file) argument
796 OatDexFile(size_t offset, const DexFile& dex_file) argument
857 OatClass(size_t offset, mirror::Class::Status status, uint32_t methods_count) argument
[all...]
H A Dfile_output_stream.h34 virtual off_t Seek(off_t offset, Whence whence);
/art/runtime/native/
H A Dsun_misc_Unsafe.cc26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint expectedValue, jint newValue) { argument
29 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset;
36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong expectedValue, jlong newValue) { argument
39 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset;
46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaExpectedValue, jobject javaNewValue) { argument
51 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset;
57 Runtime::Current()->GetHeap()->WriteBarrierField(obj, MemberOffset(offset), newValue);
62 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { argument
65 return obj->GetField32(MemberOffset(offset), false);
68 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { argument
74 Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
80 Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
86 Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) argument
93 Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
99 Unsafe_getLongVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
105 Unsafe_putLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
111 Unsafe_putLongVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
117 Unsafe_putOrderedLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlong newValue) argument
124 Unsafe_getObjectVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
131 Unsafe_getObject(JNIEnv* env, jobject, jobject javaObj, jlong offset) argument
138 Unsafe_putObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaNewValue) argument
145 Unsafe_putObjectVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, jobject javaNewValue) argument
152 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/compiler/trampolines/
H A Dtrampoline_compiler.cc30 ThreadOffset offset) {
35 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value());
39 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value());
43 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value());
58 ThreadOffset offset) {
63 __ LoadFromOffset(kLoadWord, T9, A0, offset.Int32Value());
67 __ LoadFromOffset(kLoadWord, T9, T9, offset.Int32Value());
71 __ LoadFromOffset(kLoadWord, T9, S1, offset.Int32Value());
87 static const std::vector<uint8_t>* CreateTrampoline(ThreadOffset offset) { argument
91 __ fs()->jmp(Address::Absolute(offset));
29 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset offset) argument
57 CreateTrampoline(EntryPointCallingConvention abi, ThreadOffset offset) argument
103 CreateTrampoline(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset offset) argument
[all...]
/art/jdwpspy/
H A DMain.cpp38 unsigned int offset; /* offset to show while printing */ local
44 offset = 0;
46 offset = (int) addr;
53 gap = (int) offset & 0x0f;
55 unsigned int lineOffset = offset & ~0x0f;
99 offset += count;
/art/runtime/gc/accounting/
H A Dcard_table.cc68 // GC_CARD_DIRTY, compute a offset value to make this the case
69 size_t offset = 0; local
74 offset = delta + (delta < 0 ? 0x100 : 0);
75 biased_begin += offset;
79 return new CardTable(mem_map.release(), biased_begin, offset);
82 CardTable::CardTable(MemMap* mem_map, byte* biased_begin, size_t offset) argument
83 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) {
H A Dspace_bitmap-inl.h31 const uintptr_t offset = addr - heap_begin_; local
32 const size_t index = OffsetToIndex(offset);
33 const word mask = OffsetToMask(offset);
52 const uintptr_t offset = addr - heap_begin_; local
53 return (bitmap_begin_[OffsetToIndex(offset)] & OffsetToMask(offset)) != 0;
123 const uintptr_t offset = addr - heap_begin_; local
124 const size_t index = OffsetToIndex(offset);
125 const word mask = OffsetToMask(offset);
/art/compiler/llvm/
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/compiler/dex/quick/
H A Dcodegen_util.cc117 int offset = lir->offset; local
134 LOG(INFO) << "-------- entry offset: 0x" << std::hex << dest;
140 LOG(INFO) << "-------- dalvik offset: 0x" << std::hex
144 LOG(INFO) << "-------- exit offset: 0x" << std::hex << dest;
147 LOG(INFO) << reinterpret_cast<uintptr_t>(base_addr) + offset << " (0x" << std::hex
148 << offset << "): .align4"; local
167 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":";
170 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":";
186 reinterpret_cast<unsigned int>(base_addr + offset),
346 AlignBuffer(std::vector<uint8_t>&buf, size_t offset) argument
466 AssignLiteralOffsetCommon(LIR* lir, int offset) argument
657 AssignLiteralOffset(int offset) argument
664 AssignSwitchTablesOffset(int offset) argument
681 AssignFillArrayDataOffset(int offset) argument
697 int offset = 0; local
724 int offset = AssignInsnOffsets(); local
892 MarkBoundary(int offset, const char* inst_str) argument
[all...]

Completed in 947 milliseconds

123456