Home
last modified time | relevance | path

Searched refs:header (Results 26 – 50 of 98) sorted by relevance

1234

/art/test/663-odd-dex-size3/
Dinfo.txt12 1) Add 1 to the size value in the dex header.
14 3) Change the checksum in the dex header.
/art/test/663-odd-dex-size4/
Dinfo.txt17 1) Add 1 to the size value in the dex header.
19 3) Change the checksum in the dex header.
/art/dex2oat/
Ddex2oat_test.cc1550 const CompactDexFile::Header& header = dex_file->GetHeader(); in TEST_F() local
1551 EXPECT_LE(header.OwnedDataBegin(), header.OwnedDataEnd()); in TEST_F()
1552 EXPECT_LE(header.OwnedDataBegin(), header.data_size_); in TEST_F()
1553 EXPECT_LE(header.OwnedDataEnd(), header.data_size_); in TEST_F()
1557 ASSERT_GE(method.GetCodeItemOffset(), header.OwnedDataBegin()); in TEST_F()
1558 ASSERT_LT(method.GetCodeItemOffset(), header.OwnedDataEnd()); in TEST_F()
2083 DexFile::Header header = {}; in TEST_F() local
2084 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
2085 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
2086 header.file_size_ = 4 * KB; in TEST_F()
[all …]
/art/compiler/debug/
Delf_debug_frame_writer.h218 dwarf::Writer<> header(&header_buffer); in WriteCFISection()
219 header.PushUint8(1); // Version. in WriteCFISection()
220 header.PushUint8(dwarf::DW_EH_PE_omit); // Encoding of .eh_frame pointer - none. in WriteCFISection()
221 header.PushUint8(dwarf::DW_EH_PE_udata4); // Encoding of binary search table size. in WriteCFISection()
222 header.PushUint8(dwarf::DW_EH_PE_udata4); // Encoding of binary search table data. in WriteCFISection()
223 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); in WriteCFISection()
/art/runtime/
Dintern_table-inl.h33 const ImageHeader& header = image_space->GetImageHeader(); in AddImageStringsToTable() local
34 const ImageSection& section = header.GetInternedStringsSection(); in AddImageStringsToTable()
36 AddTableFromMemory(image_space->Begin() + section.Offset(), visitor, !header.IsAppImage()); in AddImageStringsToTable()
Dvdex_file.h164 const VerifierDepsHeader& header = GetVerifierDepsHeader(); in GetComputedFileSize() local
165 size += header.GetVerifierDepsSize(); in GetComputedFileSize()
166 size += header.GetSizeOfChecksumsSection(); in GetComputedFileSize()
167 if (header.HasDexSection()) { in GetComputedFileSize()
171 size += header.GetBootClassPathChecksumStringSize(); in GetComputedFileSize()
172 size += header.GetClassLoaderContextStringSize(); in GetComputedFileSize()
Dtrace.cc662 std::string header(os.str()); in FinishTracing() local
672 Append4LE(buf + 3, static_cast<uint32_t>(header.length())); in FinishTracing()
676 WriteToBuf(reinterpret_cast<const uint8_t*>(header.c_str()), header.length()); in FinishTracing()
682 data.resize(header.length() + final_offset); in FinishTracing()
683 memcpy(data.data(), header.c_str(), header.length()); in FinishTracing()
684 memcpy(data.data() + header.length(), buf_.get(), final_offset); in FinishTracing()
689 LOG(INFO) << "Trace sent:\n" << header; in FinishTracing()
693 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
/art/dexlayout/
Ddex_ir.cc33 static uint32_t HeaderOffset(const dex_ir::Header* header ATTRIBUTE_UNUSED) { in HeaderOffset()
37 static uint32_t HeaderSize(const dex_ir::Header* header ATTRIBUTE_UNUSED) { in HeaderSize()
152 std::vector<dex_ir::DexFileSection> GetSortedDexFileSections(dex_ir::Header* header, in GetSortedDexFileSections() argument
159 s.size_fn(header), in GetSortedDexFileSections()
160 s.offset_fn(header))); in GetSortedDexFileSections()
Ddexlayout.h108 dex_ir::Header* header) in DexLayout() argument
112 header_(header) { } in DexLayout()
122 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader() argument
Ddexlayout.cc353 static std::unique_ptr<char[]> IndexString(dex_ir::Header* header, in IndexString() argument
407 if (index < header->TypeIds().Size()) { in IndexString()
408 const char* tp = header->TypeIds()[index]->GetStringId()->Data(); in IndexString()
415 if (index < header->StringIds().Size()) { in IndexString()
416 const char* st = header->StringIds()[index]->Data(); in IndexString()
423 if (index < header->MethodIds().Size()) { in IndexString()
424 dex_ir::MethodId* method_id = header->MethodIds()[index]; in IndexString()
435 if (index < header->FieldIds().Size()) { in IndexString()
436 dex_ir::FieldId* field_id = header->FieldIds()[index]; in IndexString()
456 if (index < header->MethodIds().Size()) { in IndexString()
[all …]
Ddexlayout_test.cc740 DexFile::Header& header = const_cast<DexFile::Header&>(dex->GetHeader()); in TEST_F() local
741 header.link_off_ = header.file_size_; in TEST_F()
742 header.link_size_ = 16 * KB; in TEST_F()
743 header.file_size_ += header.link_size_; in TEST_F()
744 file_size = header.file_size_; in TEST_F()
/art/compiler/optimizing/
Dloop_analysis.cc306 uint32_t GetUnrollingFactor(HLoopInformation* loop_info, HBasicBlock* header) const;
316 HBasicBlock* header = loop_info->GetHeader(); in GetSIMDUnrollingFactor() local
317 DCHECK(header); in GetSIMDUnrollingFactor()
322 unroll_factor = GetUnrollingFactor(loop_info, header); in GetSIMDUnrollingFactor()
333 uint32_t unroll_cnt = GetUnrollingFactor(loop_info, header); in GetSIMDUnrollingFactor()
351 HBasicBlock* header) const { in GetUnrollingFactor()
372 if (block == header) { in GetUnrollingFactor()
Dnodes.cc385 void HGraph::OrderLoopHeaderPredecessors(HBasicBlock* header) { in OrderLoopHeaderPredecessors() argument
386 DCHECK(header->IsLoopHeader()); in OrderLoopHeaderPredecessors()
387 HLoopInformation* info = header->GetLoopInformation(); in OrderLoopHeaderPredecessors()
388 if (info->IsBackEdge(*header->GetPredecessors()[0])) { in OrderLoopHeaderPredecessors()
389 HBasicBlock* to_swap = header->GetPredecessors()[0]; in OrderLoopHeaderPredecessors()
390 for (size_t pred = 1, e = header->GetPredecessors().size(); pred < e; ++pred) { in OrderLoopHeaderPredecessors()
391 HBasicBlock* predecessor = header->GetPredecessors()[pred]; in OrderLoopHeaderPredecessors()
393 header->predecessors_[pred] = to_swap; in OrderLoopHeaderPredecessors()
394 header->predecessors_[0] = predecessor; in OrderLoopHeaderPredecessors()
395 FixPhisAfterPredecessorsReodering(header, 0, pred); in OrderLoopHeaderPredecessors()
[all …]
/art/test/983-source-transform-verify/
Dsource_transform_art.cc39 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(class_data); in VerifyClassData() local
40 uint32_t header_file_size = header->file_size_; in VerifyClassData()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DOffset.java66 public Offset(boolean header) { in Offset() argument
67 pointsAtHeader = header; in Offset()
/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h79 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); in Walk() local
80 size_t block_size = header->size_; in Walk()
Dimage_space.cc980 const ImageHeader& header = space.GetImageHeader(); in CheckImageComponentCount() local
981 if (header.GetComponentCount() != expected_component_count) { in CheckImageComponentCount()
984 header.GetComponentCount(), in CheckImageComponentCount()
994 const ImageHeader& header = space.GetImageHeader(); in CheckImageReservationSize() local
995 if (header.GetImageReservationSize() != expected_reservation_size) { in CheckImageReservationSize()
998 header.GetImageReservationSize(), in CheckImageReservationSize()
1742 const ImageHeader& header,
1745 bool ValidateHeader(const ImageHeader& header,
1971 const ImageHeader& header, in ValidateBootImageChecksum() argument
1973 uint32_t boot_image_component_count = header.GetBootImageComponentCount(); in ValidateBootImageChecksum()
[all …]
/art/libartbase/base/
Dcommon_art_test.h115 CompactDexFile::Header* header = in CreateFakeDex() local
117 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex()
118 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex()
119 header->data_off_ = 0; in CreateFakeDex()
120 header->data_size_ = storage->size(); in CreateFakeDex()
121 header->method_ids_size_ = num_method_ids; in CreateFakeDex()
Dbit_table.h52 std::array<uint32_t, 1+kNumColumns> header = reader.ReadInterleavedVarints<1+kNumColumns>(); in Decode() local
53 num_rows_ = header[0]; in Decode()
56 size_t column_end = column_offset_[i] + header[i + 1]; in Decode()
357 std::array<uint32_t, 1 + kNumColumns> header; in Encode() local
358 header[0] = size(); in Encode()
359 uint32_t* column_bits = header.data() + 1; in Encode()
361 out.WriteInterleavedVarints(header); in Encode()
/art/test/509-pre-header/smali/
DPreHeader.smali21 # edge and not preserving the invariant that the pre header of a loop
22 # is the first predecessor of the loop header.
/art/runtime/jit/
Djit.cc638 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() local
639 const ImageSection& section = header.GetMethodsSection(); in NotifyZygoteCompilationDone()
644 uint8_t* page_start = AlignUp(header.GetImageBegin() + section.Offset(), kPageSize); in NotifyZygoteCompilationDone()
646 AlignDown(header.GetImageBegin() + section.Offset() + section.Size(), kPageSize); in NotifyZygoteCompilationDone()
697 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() local
698 const ImageSection& section = header.GetMethodsSection(); in NotifyZygoteCompilationDone()
703 uint8_t* page_start = AlignUp(header.GetImageBegin() + section.Offset(), kPageSize); in NotifyZygoteCompilationDone()
705 AlignDown(header.GetImageBegin() + section.Offset() + section.Size(), kPageSize); in NotifyZygoteCompilationDone()
725 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() local
726 const ImageSection& section = header.GetMethodsSection(); in NotifyZygoteCompilationDone()
[all …]
/art/tools/dmtracedump/
Dcreatetesttrace.cc47 DataHeader header = {0x574f4c53, VERSION, sizeof(DataHeader), 0LL}; variable
345 header.version = versionNumber; in writeDataHeader()
346 write4LE(dataFp, header.magic); in writeDataHeader()
347 write2LE(dataFp, header.version); in writeDataHeader()
348 write2LE(dataFp, header.offsetToData); in writeDataHeader()
/art/test/594-checker-irreducible-linorder/smali/
DIrreducibleLoop.smali36 if-eqz p0, :header
48 :header
64 goto :header
/art/libdexfile/dex/
Ddex_file_verifier_test.cc50 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum() local
51 uint32_t expected_size = header->file_size_; in FixUpChecksum()
56 header->checksum_ = adler_checksum; in FixUpChecksum()
1326 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F() local
1331 off_ptr = &header->map_off_; in TEST_F()
1334 off_ptr = &header->string_ids_off_; in TEST_F()
1337 off_ptr = &header->type_ids_off_; in TEST_F()
1340 off_ptr = &header->proto_ids_off_; in TEST_F()
1343 off_ptr = &header->field_ids_off_; in TEST_F()
1346 off_ptr = &header->method_ids_off_; in TEST_F()
[all …]
/art/test/dexdump/
Dstaticfields.txt3 DEX file header:
26 Class #0 header:

1234