Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 22 of 22) sorted by relevance

/art/runtime/mirror/
Darray-alloc-inl.h40 size_t header_size = Array::DataOffset(component_size).SizeValue(); in ComputeArraySize() local
42 size_t size = header_size + data_size; in ComputeArraySize()
52 DCHECK_NE(header_size, 0U); in ComputeArraySize()
53 DCHECK_EQ(RoundUp(header_size, component_size), header_size); in ComputeArraySize()
55 const size_t length_limit = (0U - header_size) >> component_size_shift; in ComputeArraySize()
88 SetLengthToUsableSizeVisitor(int32_t min_length, size_t header_size, in SetLengthToUsableSizeVisitor() argument
90 minimum_length_(min_length), header_size_(header_size), in SetLengthToUsableSizeVisitor()
Dstring-alloc-inl.h199 constexpr size_t header_size = sizeof(String); in Alloc() local
206 size_t size = header_size + data_size; in Alloc()
216 const size_t overflow_length = (-header_size) / block_size; // Unsigned arithmetic. in Alloc()
Darray-inl.h53 size_t header_size = DataOffset(1U << component_size_shift).SizeValue(); in SizeOf() local
55 return header_size + data_size; in SizeOf()
/art/compiler/
Dexception_test.cc97 const size_t header_size = sizeof(OatQuickMethodHeader); in SetUp() local
100 fake_header_code_and_maps_size_ = stack_maps_size + header_size + code_size + code_alignment; in SetUp()
110 AlignUp(&fake_header_code_and_maps_[stack_maps_size + header_size], code_alignment); in SetUp()
115 memcpy(code_ptr - header_size, &method_header, header_size); in SetUp()
/art/runtime/jit/
Djit_memory_region.cc363 size_t header_size = OatQuickMethodHeader::InstructionAlignedSize(); in CommitCode() local
364 size_t total_size = header_size + code.size(); in CommitCode()
369 DCHECK_GT(total_size, header_size); in CommitCode()
374 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(w_memory + header_size), alignment); in CommitCode()
375 const uint8_t* result = x_memory + header_size; in CommitCode()
378 std::copy(code.begin(), code.end(), w_memory + header_size); in CommitCode()
382 OatQuickMethodHeader::FromCodePointer(w_memory + header_size); in CommitCode()
/art/test/2246-trace-v2/
Ddump_trace.cc151 int header_size = is_dual_clock ? 24 : 20; in ProcessTraceEntries() local
152 if (!file->ReadFully(header, header_size)) { in ProcessTraceEntries()
/art/test/dexdump/
Dstaticfields.txt8 header_size : 112
Dquoting.txt8 header_size : 112
Dinvoke-polymorphic.txt8 header_size : 112
Dvalues.txt8 header_size : 112
Dconst-method-handle.txt8 header_size : 112
Dall.txt8 header_size : 112
Dbytecodes.txt8 header_size : 112
Dall-dex-files.txt8 header_size : 112
649 header_size : 112
8543 header_size : 112
8825 header_size : 112
14691 header_size : 112
14801 header_size : 112
14915 header_size : 112
15041 header_size : 112
Dinvoke-custom.txt8 header_size : 112
Dcheckers.txt8 header_size : 112
/art/runtime/gc/space/
Dspace_test.h116 size_t header_size = SizeOfZeroLengthByteArray(); in InstallClass() local
117 int32_t length = size - header_size; in InstallClass()
/art/libdexfile/dex/
Ddex_file_verifier.cc634 size_t header_size = (dex_version_ >= 41) ? sizeof(DexFile::HeaderV41) : sizeof(DexFile::Header); in CheckHeader() local
635 if (file_size < header_size) { in CheckHeader()
636 ErrorStringPrintf("Bad file size (%zu, expected at least %zu)", file_size, header_size); in CheckHeader()
643 CHECK_GE(size, header_size); // Implied by the two checks above. in CheckHeader()
646 if (header_->header_size_ != header_size) { in CheckHeader()
647 ErrorStringPrintf("Bad header size: %ud expected %zud", header_->header_size_, header_size); in CheckHeader()
2024 uint32_t header_size = num_header_elems * elem_size; in CheckIntraHiddenapiClassData() local
2035 if (item->size_ < header_size) { in CheckIntraHiddenapiClassData()
2037 "Hiddenapi class data too short to store header (%u < %u)", item->size_, header_size); in CheckIntraHiddenapiClassData()
2569 uint32_t header_size = num_header_elems * elem_size; in CheckInterHiddenapiClassData() local
[all …]
/art/runtime/
Dtrace.cc1438 size_t header_size; in RecordMethodInfoV1() local
1450 header_size = kMethodNameHeaderSize; in RecordMethodInfoV1()
1453 if (!trace_file_->WriteFully(method_header, header_size) || in RecordMethodInfoV1()
1740 uint32_t header_size = (clock_source_ == TraceClockSource::kDual) ? kEntryHeaderSizeDualClockV2 : in FlushEntriesFormatV2() local
1770 current_buffer_ptr += header_size; in FlushEntriesFormatV2()
1791 uint8_t* total_size_loc = init_buffer_ptr + header_size - 2; in FlushEntriesFormatV2()
1792 Append2LE(total_size_loc, current_buffer_ptr - (init_buffer_ptr + header_size)); in FlushEntriesFormatV2()
/art/runtime/gc/allocator/
Drosalloc.cc1667 size_t header_size = 0; in Initialize() local
1684 header_size = tmp_header_size; in Initialize()
1689 DCHECK_GT(header_size, 0U) << i; in Initialize()
1691 header_size += run_size % bracket_size; in Initialize()
1692 DCHECK_EQ(header_size + num_of_slots * bracket_size, run_size); in Initialize()
1694 headerSizes[i] = header_size; in Initialize()
/art/dex2oat/linker/
Doat_writer.cc2744 size_t header_size = oat_header_->GetHeaderSize(); in WriteHeader() local
2745 if (!out->WriteFully(oat_header_.get(), header_size)) { in WriteHeader()
Dimage_writer.cc1457 const size_t header_size = LengthPrefixedArray<ArtMethod>::ComputeSize(0, in RecordNativeRelocations() local
1473 image_info.IncrementBinSlotSize(bin_type, header_size); in RecordNativeRelocations()