/art/cmdline/ |
H A D | cmdline_parser.h | 75 auto* ptr = variant_map_->Get(key); local 76 if (ptr == nullptr) { 78 ptr = variant_map_->Get(key); 79 assert(ptr != nullptr); 82 return *ptr;
|
/art/compiler/debug/dwarf/ |
H A D | debug_info_entry_writer.h | 95 void WriteBlock(Attribute attrib, const uint8_t* ptr, size_t num_bytes) { argument 98 this->PushData(ptr, num_bytes);
|
H A D | writer.h | 119 void PushData(const uint8_t* ptr, size_t num_bytes) { argument 120 data_->insert(data_->end(), ptr, ptr + num_bytes); 123 void PushData(const char* ptr, size_t num_bytes) { argument 124 data_->insert(data_->end(), ptr, ptr + num_bytes);
|
/art/compiler/jit/ |
H A D | jit_logger.cc | 53 void JitLogger::WritePerfMapLog(const void* ptr, size_t code_size, ArtMethod* method) { argument 59 << reinterpret_cast<uintptr_t>(ptr) 270 void JitLogger::WriteJitDumpLog(const void* ptr, size_t code_size, ArtMethod* method) { argument 282 jit_code.code_address_ = reinterpret_cast<uint64_t>(ptr); 294 UNUSED(jit_dump_file_->WriteFully(ptr, code_size));
|
/art/compiler/utils/ |
H A D | swap_space.cc | 75 if (munmap(chunk.ptr, chunk.size) != 0) { 77 << static_cast<const void*>(chunk.ptr) << " size=" << chunk.size; 126 // The free_by_start_ map contains disjoint intervals ordered by the `ptr`. 128 it->free_by_start_entry->ptr += size; 131 // The free_by_size_ map is ordered by the `size` and then `free_by_start_entry->ptr`. 132 // Adjusting the `ptr` above does not change that ordering but decreasing `size` can 149 return old_chunk.ptr; 155 SpaceChunk remainder = { new_chunk.ptr + size, new_chunk.size - size }; 158 return new_chunk.ptr; 169 uint8_t* ptr local 190 Free(void* ptr, size_t size) argument [all...] |
H A D | swap_space.h | 40 void Free(void* ptr, size_t size) REQUIRES(!lock_); 51 mutable uint8_t* ptr; member in struct:art::SwapSpace::SpaceChunk 55 return reinterpret_cast<uintptr_t>(ptr); 58 return reinterpret_cast<uintptr_t>(ptr) + size; 65 return reinterpret_cast<uintptr_t>(a.ptr) < reinterpret_cast<uintptr_t>(b.ptr);
|
/art/dex2oat/linker/ |
H A D | image_writer.cc | 108 bool ImageWriter::IsInBootOatFile(const void* ptr) const { 116 if (image_header.GetOatFileBegin() <= ptr && ptr < image_header.GetOatFileEnd()) { 1509 bool ImageWriter::NativeRelocationAssigned(void* ptr) const { 1510 return native_object_relocations_.find(ptr) != native_object_relocations_.end(); 2302 std::string PrettyPrint(T* ptr) REQUIRES_SHARED(Locks::mutator_lock_) { 2304 oss << ptr; local 2343 T* operator()(T* ptr, void** dest_addr = nullptr) const REQUIRES_SHARED(Locks::mutator_lock_) { 2345 image_writer_->CopyAndFixupPointer(dest_addr, ptr); 2347 return image_writer_->NativeLocationInImage(ptr); [all...] |
/art/dexlayout/ |
H A D | dex_writer.h | 116 uint8_t* ptr = &data_[position_]; local 117 const size_t len = EncodeSignedLeb128(ptr, value) - ptr; 124 uint8_t* ptr = &data_[position_]; local 125 const size_t len = EncodeUnsignedLeb128(ptr, value) - ptr;
|
/art/disassembler/ |
H A D | disassembler_mips.cc | 505 static uint32_t ReadU32(const uint8_t* ptr) { argument 507 return ptr[0] | (ptr[1] << 8) | (ptr[2] << 16) | (ptr[3] << 24); 632 uintptr_t ptr = RoundDown(reinterpret_cast<uintptr_t>(instr_ptr), 8); local 633 args << FormatInstructionPointer(reinterpret_cast<const uint8_t*>(ptr + offset));
|
/art/libartbase/base/ |
H A D | casts.h | 160 inline Dest reinterpret_cast64(Source* ptr) { argument 165 return static_cast<Dest>(reinterpret_cast<uintptr_t>(ptr));
|
H A D | hash_set.h | 215 HashSet(const uint8_t* ptr, bool make_copy_of_data, size_t* read_count) noexcept { 218 offset = ReadFromBytes(ptr, offset, &temp); 220 offset = ReadFromBytes(ptr, offset, &temp); 223 offset = ReadFromBytes(ptr, offset, &temp); 225 offset = ReadFromBytes(ptr, offset, &min_load_factor_); 226 offset = ReadFromBytes(ptr, offset, &max_load_factor_); 229 data_ = const_cast<T*>(reinterpret_cast<const T*>(ptr + offset)); 236 offset = ReadFromBytes(ptr, offset, &data_[i]); 245 size_t WriteToMemory(uint8_t* ptr) const { 247 offset = WriteToBytes(ptr, offse 654 WriteToBytes(uint8_t* ptr, size_t offset, Elem n) argument 663 ReadFromBytes(const uint8_t* ptr, size_t offset, Elem* out) argument [all...] |
H A D | leb128.h | 34 const uint8_t* ptr = *data; local 35 int result = *(ptr++); 37 int cur = *(ptr++); 40 cur = *(ptr++); 43 cur = *(ptr++); 48 cur = *(ptr++); 54 *data = ptr; 65 const uint8_t* ptr = *data; local 66 if (ptr >= end) { 69 int result = *(ptr 117 const uint8_t* ptr = *data; local 152 const uint8_t* ptr = *data; local 210 IsLeb128Terminator(const uint8_t* ptr) argument 221 T* ptr = end_ptr; local [all...] |
H A D | scoped_flock.h | 78 void operator()(LockedFile* ptr) { argument 79 ptr->ReleaseLock(); 80 UNUSED(ptr->Close()); 82 delete ptr;
|
H A D | stride_iterator.h | 37 StrideIterator(T* ptr, size_t stride) argument 38 : ptr_(reinterpret_cast<uintptr_t>(ptr)),
|
H A D | time_utils.cc | 103 char* ptr = fraction_buffer; local 108 *ptr++ = '0'; 111 snprintf(ptr, avail_digits, "%" PRIu64, fractional_part);
|
H A D | variant_map.h | 236 auto* ptr = Get(key); local 237 return (ptr == nullptr) ? key.CreateDefaultValue() : *ptr; 268 TValue* ptr = Get(key); local 269 if (ptr != nullptr) { 270 return std::move(*ptr); 299 TValue* ptr = Get(key); local 300 if (ptr == nullptr) {
|
H A D | variant_map_test.cc | 86 auto* ptr = fm.Get(FruitMap::Label); local 87 ASSERT_TRUE(ptr != nullptr); 88 *ptr = "foobar"; 92 fm.Set(FruitMap::Label, *ptr); 95 ASSERT_TRUE(ptr != nullptr);
|
/art/libartbase/base/unix_file/ |
H A D | fd_file.cc | 258 char* ptr = static_cast<char*>(buffer); local 260 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); 267 ptr += bytes_read; // Move the buffer forward. 286 const char* ptr = static_cast<const char*>(buffer); local 289 ? TEMP_FAILURE_RETRY(pwrite(fd_, ptr, byte_count, offset)) 290 : TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count)); 295 ptr += bytes_written; // Move the buffer forward.
|
/art/libdexfile/dex/ |
H A D | dex_file-inl.h | 31 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; local 32 return DecodeUnsignedLeb128(&ptr); 38 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; local 39 *utf16_length = DecodeUnsignedLeb128(&ptr); 40 return reinterpret_cast<const char*>(ptr);
|
H A D | dex_file.cc | 528 int32_t DexFile::ReadSignedInt(const uint8_t* ptr, int zwidth) { argument 531 val = ((uint32_t)val >> 8) | (((int32_t)*ptr++) << 24); 539 uint32_t DexFile::ReadUnsignedInt(const uint8_t* ptr, int zwidth, bool fill_on_right) { argument 542 val = (val >> 8) | (((uint32_t)*ptr++) << 24); 551 int64_t DexFile::ReadSignedLong(const uint8_t* ptr, int zwidth) { argument 554 val = ((uint64_t)val >> 8) | (((int64_t)*ptr++) << 56); 562 uint64_t DexFile::ReadUnsignedLong(const uint8_t* ptr, int zwidth, bool fill_on_right) { argument 565 val = (val >> 8) | (((uint64_t)*ptr++) << 56);
|
H A D | dex_file_verifier.cc | 308 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { argument 310 if (!CheckListSize(*ptr, 1, 4U, label)) { 314 uint32_t count = *reinterpret_cast<const uint32_t*>(*ptr); 316 if (!CheckListSize(*ptr + 4, count, element_size, label)) { 321 *ptr += 4 + count * element_size; 565 #define DECODE_UNSIGNED_CHECKED_FROM_WITH_ERROR_VALUE(ptr, var, error_value) \ 567 if (!DecodeUnsignedLeb128Checked(&(ptr), begin_ + size_, &(var))) { \ 571 #define DECODE_UNSIGNED_CHECKED_FROM(ptr, var) \ 573 if (!DecodeUnsignedLeb128Checked(&(ptr), begin_ + size_, &(var))) { \ 578 #define DECODE_SIGNED_CHECKED_FROM(ptr, va 1978 FindFirstClassDataDefiner(const uint8_t* ptr, bool* success) argument 1997 FindFirstAnnotationsDirectoryDefiner(const uint8_t* ptr, bool* success) argument 2917 const uint8_t* ptr = begin + string_id->string_data_off_; local [all...] |
H A D | dex_file_verifier_test.cc | 303 const uint8_t* ptr = FindMethodData(dex_file, method); local 305 DecodeUnsignedLeb128(&ptr); 308 const uint8_t* tmp = ptr; 310 size_t bytes = tmp - ptr; 312 uint8_t* mod = const_cast<uint8_t*>(ptr);
|
H A D | utf_test.cc | 61 const char* ptr = start; local 65 pair = GetUtf16FromUtf8(&ptr); 68 EXPECT_ARRAY_POSITION(1, ptr, start); 71 pair = GetUtf16FromUtf8(&ptr); 74 EXPECT_ARRAY_POSITION(3, ptr, start); 77 pair = GetUtf16FromUtf8(&ptr); 80 EXPECT_ARRAY_POSITION(6, ptr, start); 83 pair = GetUtf16FromUtf8(&ptr); 86 EXPECT_ARRAY_POSITION(10, ptr, start); 89 pair = GetUtf16FromUtf8(&ptr); 97 const char* ptr = start; local [all...] |
/art/oatdump/ |
H A D | oatdump.cc | 3273 ArtMethod* ptr = im_table->Get(imt_index, pointer_size); local 3274 if (ptr->IsRuntimeMethod()) { 3275 if (ptr->IsImtUnimplementedMethod()) { 3278 ImtConflictTable* current_table = ptr->GetImtConflictTable(pointer_size); 3350 ArtMethod* ptr = table->GetInterfaceMethod(table_index, pointer_size); local 3351 if (ptr == nullptr) { 3355 std::cerr << " " << ptr->PrettyMethod(true) << std::endl; 3425 ArtMethod* ptr = imt->Get(index, pointer_size); local 3426 if (ptr->IsRuntimeMethod()) { 3427 if (ptr 3483 ArtMethod* ptr = imt->Get(index, pointer_size); local [all...] |
/art/openjdkjvmti/ |
H A D | transform.cc | 98 uintptr_t ptr = reinterpret_cast<uintptr_t>(siginfo->si_addr); variable 109 [&](const auto op) { return op->ContainsAddress(ptr); }); 117 // Wait for the ptr to be initialized (if it is currently initializing). 118 while (DefinitionIsInitializing(ptr)) { 126 [&](const auto op) { return op->ContainsAddress(ptr); }) != 182 bool DefinitionIsInitializing(uintptr_t ptr) REQUIRES(uninitialized_class_definitions_lock_) { 185 [&](const auto op) { return op->ContainsAddress(ptr); }) !=
|