/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 | dex_writer.h | 31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } argument 33 static void Output(dex_ir::Header* header, MemMap* mem_map);
|
H A D | dex_visualize.cc | 47 explicit Dumper(dex_ir::Header* header) argument 50 dex_ir::GetSortedDexFileSections(header, dex_ir::SortDirection::kSortDescending)) { } 247 void VisualizeDexLayout(dex_ir::Header* header, argument 251 std::unique_ptr<Dumper> dumper(new Dumper(header)); 257 const uint32_t class_defs_size = header->GetCollections().ClassDefsSize(); 259 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); 306 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, argument 315 return header->FileSize(); 321 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { argument 325 header [all...] |
H A D | dexlayout.h | 75 header = nullptr) 76 : options_(options), info_(info), out_file_(out_file), header_(header) { } 82 void SetHeader(dex_ir::Header* header) { header_ = header; } argument
|
H A D | dex_ir_builder.cc | 31 Header* header = new Header(disk_header.magic_, local 41 Collections& collections = header->GetCollections(); 42 // Walk the rest of the header fields. 80 return 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/compiler/jit/ |
H A D | jit_logger.cc | 118 uint32_t size_; // Total size of header 122 uint64_t time_stamp_; // Timestamp when the header is generated 236 PerfJitHeader header; local 238 std::memset(&header, 0, sizeof(header)); 239 header.magic_ = PerfJitHeader::kMagic; 240 header.version_ = PerfJitHeader::kVersion; 241 header.size_ = sizeof(header); 242 header [all...] |
/art/compiler/optimizing/ |
H A D | loop_optimization_test.cc | 64 HBasicBlock* header = new (&allocator_) HBasicBlock(graph_); local 66 graph_->AddBlock(header); 69 position->ReplaceSuccessor(successor, header); 70 header->AddSuccessor(body); 71 header->AddSuccessor(successor); 72 header->AddInstruction(new (&allocator_) HIf(parameter_)); 73 body->AddSuccessor(header); 75 return header;
|
H A D | linear_order.cc | 55 for (HBasicBlock* header : graph->GetBlocks()) { 56 if (header == nullptr || !header->IsLoopHeader()) { 59 HLoopInformation* loop = header->GetLoopInformation(); 65 if (found_blocks == 1u && block != header) { 66 // First block is not the header.
|
H A D | loop_optimization.cc | 365 HBasicBlock* header = node->loop_info->GetHeader(); local 367 // Scan the phis in the header to find opportunities to simplify an induction 372 for (HInstructionIterator it(header->GetPhis()); !it.Done(); it.Advance()) { 428 HBasicBlock* header = node->loop_info->GetHeader(); local 430 // Ensure loop header logic is finite. 436 // Ensure there is only a single loop-body (besides the header). 439 if (it.Current() != header) { 447 if (header->GetSuccessors().size() != 2) { 450 HBasicBlock* exit = (header->GetSuccessors()[0] == body) 451 ? header 578 HBasicBlock* header = node->loop_info->GetHeader(); local [all...] |
H A D | register_allocator.cc | 268 // If `to` is in a loop, find the outermost loop header which does not contain `from`. 270 HBasicBlock* header = it.Current()->GetHeader(); local 271 if (block_from->GetLifetimeStart() >= header->GetLifetimeStart()) { 274 block_to = header;
|
/art/compiler/utils/ |
H A D | test_dex_file_builder.h | 89 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); local 90 std::copy_n(DexFile::kDexMagic, 4u, header->magic_); 91 std::copy_n(DexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); 92 header->header_size_ = sizeof(DexFile::Header); 93 header->endian_tag_ = DexFile::kDexEndianConstant; 94 header->link_size_ = 0u; // Unused. 95 header->link_off_ = 0u; // Unused. 96 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder 109 header->string_ids_size_ = strings_.size(); 110 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/compiler/debug/ |
H A D | elf_debug_writer.cc | 176 std::vector<MethodDebugInfo> MakeTrampolineInfos(const OatHeader& header) { argument 178 { "interpreterToInterpreterBridge", header.GetInterpreterToInterpreterBridgeOffset() }, 179 { "interpreterToCompiledCodeBridge", header.GetInterpreterToCompiledCodeBridgeOffset() }, 180 { "jniDlsymLookup", header.GetJniDlsymLookupOffset() }, 181 { "quickGenericJniTrampoline", header.GetQuickGenericJniTrampolineOffset() }, 182 { "quickImtConflictTrampoline", header.GetQuickImtConflictTrampolineOffset() }, 183 { "quickResolutionTrampoline", header.GetQuickResolutionTrampolineOffset() }, 184 { "quickToInterpreterBridge", header.GetQuickToInterpreterBridgeOffset() }, 191 info.isa = header.GetInstructionSet(); 193 info.code_address = it.second - header [all...] |
H A D | elf_debug_frame_writer.h | 250 dwarf::Writer<> header(&buffer); 251 header.PushUint8(1); // Version. 254 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4); 256 header.PushUint8(dwarf::DW_EH_PE_udata4); 259 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4); 261 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u)); 263 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); 267 // Make addresses section-relative since we know the header address now.
|
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout-inl.h | 32 const DexFile::Header& header, 37 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), 39 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), 41 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), 43 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), MethodTypesAlignment())), 45 RoundUp(method_types_offset_ + MethodTypesSize(header.proto_ids_size_), 31 DexCacheArraysLayout(PointerSize pointer_size, const DexFile::Header& header, uint32_t num_call_sites) argument
|
H A D | dex_cache_arrays_layout.h | 44 // Construct a layout for a particular dex file header. 46 const DexFile::Header& header,
|
/art/test/566-polymorphic-inlining/ |
H A D | polymorphic_inline.cc | 35 OatQuickMethodHeader* header = nullptr; local 40 header = OatQuickMethodHeader::FromEntryPoint(pc); 50 CodeInfo info = header->GetOptimizedCodeInfo();
|
/art/runtime/ |
H A D | dex_file_test.cc | 276 const DexFile::Header& header = dex_file->GetHeader(); local 277 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); 278 EXPECT_EQ(0x00d87910U, header.checksum_); 279 EXPECT_EQ(*kExpectedSha1, *header.signature_); 280 EXPECT_EQ(904U, header.file_size_); 281 EXPECT_EQ(112U, header.header_size_); 282 EXPECT_EQ(0U, header.link_size_); 283 EXPECT_EQ(0U, header.link_off_); 284 EXPECT_EQ(15U, header.string_ids_size_); 285 EXPECT_EQ(112U, header 320 const DexFile::Header& header = raw->GetHeader(); local [all...] |
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); 190 // The offset in bytes from the start of the vmap table to the end of the header. 192 // The offset in bytes from the start of the method info to the end of the header. 200 // code with the method header has should_deoptimize flag.
|
/art/test/570-checker-osr/ |
H A D | osr.cc | 42 const OatQuickMethodHeader* header = local 44 if (header != nullptr && header == GetCurrentOatQuickMethodHeader()) {
|
/art/runtime/gc/space/ |
H A D | bump_pointer_space.cc | 148 BlockHeader* header = reinterpret_cast<BlockHeader*>(storage); local 149 header->size_ = bytes; // Write out the block header. 162 // If we have 0 blocks then we need to update the main header since we have bump pointer style 191 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); local 192 size_t block_size = header->size_; 193 pos += sizeof(BlockHeader); // Skip the header so that we know where the objects 198 // assume its the end. TODO: Have a thread update the header when it flushes the block?
|
/art/tools/dmtracedump/ |
H A D | createtesttrace.cc | 20 #include "profile.h" // from VM header 34 * Values from the header of the data file. 47 DataHeader header = {0x574f4c53, VERSION, sizeof(DataHeader), 0LL}; variable 345 header.version = versionNumber; 346 write4LE(dataFp, header.magic); 347 write2LE(dataFp, header.version); 348 write2LE(dataFp, header.offsetToData);
|