Searched defs:ptr (Results 1 - 25 of 75) sorted by path

123

/art/cmdline/
H A Dcmdline_parser.h75 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 Ddebug_info_entry_writer.h95 void WriteBlock(Attribute attrib, const uint8_t* ptr, size_t num_bytes) { argument
98 this->PushData(ptr, num_bytes);
H A Dwriter.h119 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 Djit_logger.cc53 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 Dswap_space.cc75 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 Dswap_space.h40 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 Dimage_writer.cc108 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 Ddex_writer.h116 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 Ddisassembler_mips.cc505 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 Dcasts.h160 inline Dest reinterpret_cast64(Source* ptr) { argument
165 return static_cast<Dest>(reinterpret_cast<uintptr_t>(ptr));
H A Dhash_set.h215 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 Dleb128.h34 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 Dscoped_flock.h78 void operator()(LockedFile* ptr) { argument
79 ptr->ReleaseLock();
80 UNUSED(ptr->Close());
82 delete ptr;
H A Dstride_iterator.h37 StrideIterator(T* ptr, size_t stride) argument
38 : ptr_(reinterpret_cast<uintptr_t>(ptr)),
H A Dtime_utils.cc103 char* ptr = fraction_buffer; local
108 *ptr++ = '0';
111 snprintf(ptr, avail_digits, "%" PRIu64, fractional_part);
H A Dvariant_map.h236 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 Dvariant_map_test.cc86 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 Dfd_file.cc258 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 Ddex_file-inl.h31 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 Ddex_file.cc528 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 Ddex_file_verifier.cc308 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 Ddex_file_verifier_test.cc303 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 Dutf_test.cc61 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 Doatdump.cc3273 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 Dtransform.cc98 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); }) !=

Completed in 7264 milliseconds

123