/art/dexlayout/ |
H A D | dex_visualize.h | 36 void VisualizeDexLayout(dex_ir::Header* header, 41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
|
H A D | compact_dex_writer.cc | 273 CompactDexFile::Header header; local 274 CompactDexFile::WriteMagic(&header.magic_[0]); 275 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); 276 header.checksum_ = header_->Checksum(); 277 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); 278 header.file_size_ = header_->FileSize(); 280 // header size. 281 header.header_size_ = GetHeaderSize(); 282 header.endian_tag_ = header_->EndianTag(); 283 header [all...] |
H A D | dex_visualize.cc | 49 explicit Dumper(dex_ir::Header* header) argument 52 dex_ir::GetSortedDexFileSections(header, dex_ir::SortDirection::kSortDescending)) { } 245 void VisualizeDexLayout(dex_ir::Header* header, argument 249 std::unique_ptr<Dumper> dumper(new Dumper(header)); 255 const uint32_t class_defs_size = header->GetCollections().ClassDefsSize(); 257 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); 304 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, argument 313 return header->FileSize(); 319 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { argument 323 header [all...] |
H A D | dexlayout.h | 106 dex_ir::Header* header) 110 header_(header) { } 120 void SetHeader(dex_ir::Header* header) { header_ = header; } argument 103 DexLayout(Options& options, ProfileCompilationInfo* info, FILE* out_file, dex_ir::Header* header) argument
|
H A D | dex_writer.cc | 746 StandardDexFile::Header header; local 748 StandardDexFile::WriteMagic(header.magic_); 750 StandardDexFile::WriteCurrentVersion(header.magic_); 752 // Standard dex -> standard dex, just reuse the same header. 755 std::copy_n(header_->Magic(), kMagicAndVersionLen, header.magic_); 757 header.checksum_ = header_->Checksum(); 758 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); 759 header.file_size_ = header_->FileSize(); 760 header.header_size_ = GetHeaderSize(); 761 header [all...] |
/art/compiler/optimizing/ |
H A D | loop_optimization_test.cc | 62 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); local 64 graph_->AddBlock(header); 67 position->ReplaceSuccessor(successor, header); 68 header->AddSuccessor(body); 69 header->AddSuccessor(successor); 70 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); 71 body->AddSuccessor(header); 73 return header; 201 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); local 203 graph_->AddBlock(header); 242 HBasicBlock* header = AddLoop(entry_block_, return_block_); local [all...] |
H A D | superblock_cloner_test.cc | 162 HBasicBlock* header = nullptr; local 165 CreateBasicLoopControlFlow(&header, &loop_body); 166 CreateBasicLoopDataFlow(header, loop_body); 170 HSuspendCheck* old_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); 184 HSuspendCheck* new_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); 192 HBasicBlock* header = nullptr; local 196 CreateBasicLoopControlFlow(&header, &loop_body); 197 CreateBasicLoopDataFlow(header, loop_body); 206 HLoopInformation* loop_info = header->GetLoopInformation(); 271 HBasicBlock* header local [all...] |
H A D | linear_order.cc | 59 for (HBasicBlock* header : graph->GetBlocks()) { 60 if (header == nullptr || !header->IsLoopHeader()) { 63 HLoopInformation* loop = header->GetLoopInformation(); 69 if (found_blocks == 1u && block != header) { 70 // First block is not the header.
|
/art/tools/ |
H A D | stream-trace-converter.py | 18 a header and body part, which, when concatenated, make up a non-streaming trace file that 71 def PrintHeader(self, header): 72 header.write('*version\n'); 73 header.write('3\n'); 74 header.write('data-file-overflow=false\n'); 75 header.write('clock=dual\n'); 76 header.write('vm=art\n'); 157 def Finalize(self, header): 158 # If the summary is present in the input file, use it as the header except 160 # apppend header wit [all...] |
/art/libdexfile/dex/ |
H A D | compact_dex_file_test.cc | 29 uint8_t header[len] = {}; local 30 std::fill_n(header, len, 0x99); 34 CompactDexFile::WriteMagic(header); 37 CompactDexFile::WriteCurrentVersion(header); 39 EXPECT_EQ(valid_magic, CompactDexFile::IsMagicValid(header)); 40 EXPECT_EQ(valid_version, CompactDexFile::IsVersionValid(header)); 41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); 42 EXPECT_EQ(valid_magic && valid_version, DexFileLoader::IsVersionAndMagicValid(header));
|
H A D | dex_file_loader_test.cc | 278 const DexFile::Header& header = dex_file->GetHeader(); local 279 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); 280 EXPECT_EQ(0x00d87910U, header.checksum_); 281 EXPECT_EQ(*kExpectedSha1, *header.signature_); 282 EXPECT_EQ(904U, header.file_size_); 283 EXPECT_EQ(112U, header.header_size_); 284 EXPECT_EQ(0U, header.link_size_); 285 EXPECT_EQ(0U, header.link_off_); 286 EXPECT_EQ(15U, header.string_ids_size_); 287 EXPECT_EQ(112U, header 322 const DexFile::Header& header = raw->GetHeader(); local 331 const DexFile::Header& header = raw->GetHeader(); local [all...] |
H A D | test_dex_file_builder.h | 91 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); local 92 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); 93 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); 94 header->header_size_ = sizeof(DexFile::Header); 95 header->endian_tag_ = DexFile::kDexEndianConstant; 96 header->link_size_ = 0u; // Unused. 97 header->link_off_ = 0u; // Unused. 98 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder 111 header->string_ids_size_ = strings_.size(); 112 header [all...] |
H A D | code_item_accessors_test.cc | 33 CompactDexFile::Header* header = local 35 CompactDexFile::WriteMagic(header->magic_); 36 CompactDexFile::WriteCurrentVersion(header->magic_); 37 header->data_off_ = 0; 38 header->data_size_ = data->size();
|
/art/compiler/jit/ |
H A D | jit_logger.cc | 115 uint32_t size_; // Total size of header 119 uint64_t time_stamp_; // Timestamp when the header is generated 233 PerfJitHeader header; local 235 std::memset(&header, 0, sizeof(header)); 236 header.magic_ = PerfJitHeader::kMagic; 237 header.version_ = PerfJitHeader::kVersion; 238 header.size_ = sizeof(header); 239 header [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | RawDexFile.java | 28 public HeaderItem header; field in class:RawDexFile 32 // Can be allocated after reading the header. 59 // Read header. 60 (header = new HeaderItem()).read(file); 63 stringIds = new ArrayList<StringIdItem>(header.stringIdsSize); 64 typeIds = new ArrayList<TypeIdItem>(header.typeIdsSize); 65 protoIds = new ArrayList<ProtoIdItem>(header.protoIdsSize); 66 fieldIds = new ArrayList<FieldIdItem>(header.fieldIdsSize); 67 methodIds = new ArrayList<MethodIdItem>(header.methodIdsSize); 68 classDefs = new ArrayList<ClassDefItem>(header [all...] |
H A D | Offset.java | 62 * and it's not pointing at the header, then this is set. 66 public Offset(boolean header) { argument 67 pointsAtHeader = header; 119 * Example: if there are no fields referred to in a DEX file, then header.field_ids_off 121 * at the header (only the header MapItem should do this) with a flag. Therefore, this
|
H A D | OffsetTracker.java | 86 * (why? to read, we read the header, then the map list, and then use the map 88 * when we write, we write the header, and then we cannot write the map list 91 * so we can skip there after we write out the header. 148 * Only MapItem should call this method, when the MapItem that points to the header 256 * Called after writing out the header, to skip to after the map list. 323 // Add the field IDs to the header. 324 rawDexFile.header.fieldIdsOff.unsetNullAndPointTo(fieldOffsettable); 325 rawDexFile.header.fieldIdsSize = 1; 362 // Based on the type of the item we just added, check the relevant Offset in the header 365 HeaderItem header [all...] |
/art/test/566-polymorphic-inlining/ |
H A D | polymorphic_inline.cc | 36 OatQuickMethodHeader* header = nullptr; local 41 header = OatQuickMethodHeader::FromEntryPoint(pc); 51 CodeInfo info = header->GetOptimizedCodeInfo();
|
/art/runtime/gc/space/ |
H A D | bump_pointer_space-walk-inl.h | 50 // If we have 0 blocks then we need to update the main header since we have bump pointer style 79 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); local 80 size_t block_size = header->size_; 81 pos += sizeof(BlockHeader); // Skip the header so that we know where the objects 86 // assume its the end. TODO: Have a thread update the header when it flushes the block?
|
/art/test/983-source-transform-verify/ |
H A D | source_transform_art.cc | 38 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(class_data); local 39 uint32_t header_file_size = header->file_size_;
|
/art/runtime/ |
H A D | oat_quick_method_header.h | 46 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); local 48 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) 49 << std::hex << code << " " << std::hex << header; local 50 return reinterpret_cast<OatQuickMethodHeader*>(header); 191 // The offset in bytes from the start of the vmap table to the end of the header. 193 // The offset in bytes from the start of the method info to the end of the header. 201 // code with the method header has should_deoptimize flag.
|
H A D | vdex_file.h | 38 // VdexFile::VerifierDepsHeader fixed-length header 42 // VdexFile::DexSectionHeader fixed-length header 94 // The format version of the verifier deps header and the verifier deps. 98 // The format version of the dex section header and the dex section, containing 140 const VerifierDepsHeader& header = GetVerifierDepsHeader(); local 141 size += header.GetVerifierDepsSize(); 142 size += header.GetSizeOfChecksumsSection(); 143 if (header.HasDexSection()) { 241 // When there is no dex section, the verifier deps are just after the header.
|
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout-inl.h | 33 const DexFile::Header& header, 38 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), 40 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), 42 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), 44 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), MethodTypesAlignment())), 46 RoundUp(method_types_offset_ + MethodTypesSize(header.proto_ids_size_), 32 DexCacheArraysLayout(PointerSize pointer_size, const DexFile::Header& header, uint32_t num_call_sites) argument
|
/art/compiler/debug/ |
H A D | elf_debug_frame_writer.h | 249 dwarf::Writer<> header(&buffer); 250 header.PushUint8(1); // Version. 253 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4); 255 header.PushUint8(dwarf::DW_EH_PE_udata4); 258 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4); 260 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u)); 262 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); 266 // Make addresses section-relative since we know the header address now.
|
/art/test/570-checker-osr/ |
H A D | osr.cc | 43 const OatQuickMethodHeader* header = local 45 if (header != nullptr && header == GetCurrentOatQuickMethodHeader()) {
|