/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 | null_file.cc | 36 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 D | string_file.cc | 38 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 D | random_access_file.h | 29 // 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 D | null_file.h | 39 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 D | string_file.h | 42 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 D | mapped_file.cc | 98 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 D | oat.cc | 127 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 D | memory_region.h | 47 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 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 | dex_file_verifier.h | 50 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 D | oat.h | 53 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 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 | elf_stripper.cc | 37 // | 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 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 | oat_writer.cc | 75 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 D | file_output_stream.h | 34 virtual off_t Seek(off_t offset, Whence whence);
|
/art/runtime/native/ |
H A D | sun_misc_Unsafe.cc | 26 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 D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 25 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 D | trampoline_compiler.cc | 30 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 D | Main.cpp | 38 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 D | card_table.cc | 68 // 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 D | space_bitmap-inl.h | 31 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 D | runtime_support_builder_x86.h | 32 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 D | codegen_util.cc | 117 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...] |