/art/tools/ |
D | stream-trace-converter.py | 71 def PrintHeader(self, header): argument 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): argument 163 header.seek(0) 164 header.truncate() 171 header.write(line) [all …]
|
/art/compiler/jit/ |
D | jit_logger.cc | 233 PerfJitHeader header; in WriteJitDumpHeader() local 235 std::memset(&header, 0, sizeof(header)); in WriteJitDumpHeader() 236 header.magic_ = PerfJitHeader::kMagic; in WriteJitDumpHeader() 237 header.version_ = PerfJitHeader::kVersion; in WriteJitDumpHeader() 238 header.size_ = sizeof(header); in WriteJitDumpHeader() 239 header.elf_mach_target_ = GetElfMach(); in WriteJitDumpHeader() 240 header.process_id_ = static_cast<uint32_t>(getpid()); in WriteJitDumpHeader() 241 header.time_stamp_ = art::NanoTime(); // CLOCK_MONOTONIC clock is required. in WriteJitDumpHeader() 242 header.flags_ = 0; in WriteJitDumpHeader() 244 bool res = jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&header), sizeof(header)); in WriteJitDumpHeader()
|
/art/compiler/utils/ |
D | test_dex_file_builder.h | 89 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build() local 90 std::copy_n(DexFile::kDexMagic, 4u, header->magic_); in Build() 91 std::copy_n(DexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build() 92 header->header_size_ = sizeof(DexFile::Header); in Build() 93 header->endian_tag_ = DexFile::kDexEndianConstant; in Build() 94 header->link_size_ = 0u; // Unused. in Build() 95 header->link_off_ = 0u; // Unused. in Build() 96 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder in Build() 109 header->string_ids_size_ = strings_.size(); in Build() 110 header->string_ids_off_ = strings_.empty() ? 0u : string_ids_offset; in Build() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | RawDexFile.java | 28 public HeaderItem header; field in RawDexFile 60 (header = new HeaderItem()).read(file); in read() 63 stringIds = new ArrayList<StringIdItem>(header.stringIdsSize); in read() 64 typeIds = new ArrayList<TypeIdItem>(header.typeIdsSize); in read() 65 protoIds = new ArrayList<ProtoIdItem>(header.protoIdsSize); in read() 66 fieldIds = new ArrayList<FieldIdItem>(header.fieldIdsSize); in read() 67 methodIds = new ArrayList<MethodIdItem>(header.methodIdsSize); in read() 68 classDefs = new ArrayList<ClassDefItem>(header.classDefsSize); in read() 94 header.stringIdsSize = stringIds.size(); in write() 107 header.methodIdsSize = methodIds.size(); in write() [all …]
|
D | OffsetTracker.java | 324 rawDexFile.header.fieldIdsOff.unsetNullAndPointTo(fieldOffsettable); in addFieldIdsToHeaderAndMapFile() 325 rawDexFile.header.fieldIdsSize = 1; in addFieldIdsToHeaderAndMapFile() 365 HeaderItem header = rawDexFile.header; in updateOffsetsInHeaderAndMapFile() local 367 updateHeaderOffsetIfValid(header.stringIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile() 370 updateHeaderOffsetIfValid(header.typeIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile() 373 updateHeaderOffsetIfValid(header.protoIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile() 376 updateHeaderOffsetIfValid(header.fieldIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile() 379 updateHeaderOffsetIfValid(header.methodIdsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile() 382 updateHeaderOffsetIfValid(header.classDefsOff, prevFirstOffsettable, in updateOffsetsInHeaderAndMapFile()
|
D | Offset.java | 66 public Offset(boolean header) { in Offset() argument 67 pointsAtHeader = header; in Offset()
|
/art/compiler/debug/ |
D | elf_debug_writer.cc | 177 std::vector<MethodDebugInfo> MakeTrampolineInfos(const OatHeader& header) { in MakeTrampolineInfos() argument 179 { "interpreterToInterpreterBridge", header.GetInterpreterToInterpreterBridgeOffset() }, in MakeTrampolineInfos() 180 { "interpreterToCompiledCodeBridge", header.GetInterpreterToCompiledCodeBridgeOffset() }, in MakeTrampolineInfos() 181 { "jniDlsymLookup", header.GetJniDlsymLookupOffset() }, in MakeTrampolineInfos() 182 { "quickGenericJniTrampoline", header.GetQuickGenericJniTrampolineOffset() }, in MakeTrampolineInfos() 183 { "quickImtConflictTrampoline", header.GetQuickImtConflictTrampolineOffset() }, in MakeTrampolineInfos() 184 { "quickResolutionTrampoline", header.GetQuickResolutionTrampolineOffset() }, in MakeTrampolineInfos() 185 { "quickToInterpreterBridge", header.GetQuickToInterpreterBridgeOffset() }, in MakeTrampolineInfos() 192 info.isa = header.GetInstructionSet(); in MakeTrampolineInfos() 194 info.code_address = it.second - header.GetExecutableOffset(); in MakeTrampolineInfos()
|
D | elf_debug_frame_writer.h | 250 dwarf::Writer<> header(&buffer); in WriteCFISection() 251 header.PushUint8(1); // Version. in WriteCFISection() 254 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4); in WriteCFISection() 256 header.PushUint8(dwarf::DW_EH_PE_udata4); in WriteCFISection() 259 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4); in WriteCFISection() 261 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u)); in WriteCFISection() 263 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); in WriteCFISection()
|
/art/test/098-ddmc/ |
D | expected.txt | 2 empty=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: … 14 reset=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries: … 23 goodbye=Allocations[message header len: 15 entry header len: 9 stack frame len: 8 number of entries…
|
/art/runtime/ |
D | dex_file_test.cc | 278 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader() local 279 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); in ValidateDexFileHeader() 280 EXPECT_EQ(0x00d87910U, header.checksum_); in ValidateDexFileHeader() 281 EXPECT_EQ(*kExpectedSha1, *header.signature_); in ValidateDexFileHeader() 282 EXPECT_EQ(904U, header.file_size_); in ValidateDexFileHeader() 283 EXPECT_EQ(112U, header.header_size_); in ValidateDexFileHeader() 284 EXPECT_EQ(0U, header.link_size_); in ValidateDexFileHeader() 285 EXPECT_EQ(0U, header.link_off_); in ValidateDexFileHeader() 286 EXPECT_EQ(15U, header.string_ids_size_); in ValidateDexFileHeader() 287 EXPECT_EQ(112U, header.string_ids_off_); in ValidateDexFileHeader() [all …]
|
D | oat_quick_method_header.h | 46 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer() local 48 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) in FromCodePointer() 49 << std::hex << code << " " << std::hex << header; in FromCodePointer() 50 return reinterpret_cast<OatQuickMethodHeader*>(header); in FromCodePointer()
|
/art/compiler/optimizing/ |
D | loop_optimization_test.cc | 64 HBasicBlock* header = new (&allocator_) HBasicBlock(graph_); in AddLoop() local 66 graph_->AddBlock(header); in AddLoop() 69 position->ReplaceSuccessor(successor, header); in AddLoop() 70 header->AddSuccessor(body); in AddLoop() 71 header->AddSuccessor(successor); in AddLoop() 72 header->AddInstruction(new (&allocator_) HIf(parameter_)); in AddLoop() 73 body->AddSuccessor(header); in AddLoop() 75 return header; in AddLoop()
|
D | linear_order.cc | 55 for (HBasicBlock* header : graph->GetBlocks()) { in IsLinearOrderWellFormed() 56 if (header == nullptr || !header->IsLoopHeader()) { in IsLinearOrderWellFormed() 59 HLoopInformation* loop = header->GetLoopInformation(); in IsLinearOrderWellFormed() 65 if (found_blocks == 1u && block != header) { in IsLinearOrderWellFormed()
|
/art/dexlayout/ |
D | dex_visualize.cc | 47 explicit Dumper(dex_ir::Header* header) in Dumper() argument 50 dex_ir::GetSortedDexFileSections(header, dex_ir::SortDirection::kSortDescending)) { } in Dumper() 247 void VisualizeDexLayout(dex_ir::Header* header, in VisualizeDexLayout() argument 251 std::unique_ptr<Dumper> dumper(new Dumper(header)); in VisualizeDexLayout() 257 const uint32_t class_defs_size = header->GetCollections().ClassDefsSize(); in VisualizeDexLayout() 259 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); in VisualizeDexLayout() 306 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, in FindNextByteAfterSection() argument 315 return header->FileSize(); in FindNextByteAfterSection() 321 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { in ShowDexSectionStatistics() argument 325 header->FileSize()); in ShowDexSectionStatistics() [all …]
|
D | dex_visualize.h | 36 void VisualizeDexLayout(dex_ir::Header* header, 41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
|
D | dex_writer.h | 31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } in DexWriter() argument 33 static void Output(dex_ir::Header* header, MemMap* mem_map);
|
D | dexlayout.h | 76 header = nullptr) 77 : options_(options), info_(info), out_file_(out_file), header_(header) { } in options_() 83 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader() argument
|
/art/test/509-pre-header/ |
D | info.txt | 2 The invariant that the pre header of a loop header is the
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 32 const DexFile::Header& header, in DexCacheArraysLayout() argument 37 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), in DexCacheArraysLayout() 39 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), in DexCacheArraysLayout() 41 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), in DexCacheArraysLayout() 43 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), MethodTypesAlignment())), in DexCacheArraysLayout() 45 RoundUp(method_types_offset_ + MethodTypesSize(header.proto_ids_size_), in DexCacheArraysLayout()
|
/art/test/566-polymorphic-inlining/ |
D | polymorphic_inline.cc | 35 OatQuickMethodHeader* header = nullptr; in do_checks() local 40 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks() 50 CodeInfo info = header->GetOptimizedCodeInfo(); in do_checks()
|
/art/test/663-odd-dex-size2/ |
D | info.txt | 12 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-size/ |
D | info.txt | 12 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/ |
D | info.txt | 17 1) Add 1 to the size value in the dex header. 19 3) Change the checksum in the dex header.
|
/art/test/663-odd-dex-size3/ |
D | info.txt | 12 1) Add 1 to the size value in the dex header. 14 3) Change the checksum in the dex header.
|
/art/runtime/gc/space/ |
D | bump_pointer_space-walk-inl.h | 79 BlockHeader* header = reinterpret_cast<BlockHeader*>(pos); in Walk() local 80 size_t block_size = header->size_; in Walk()
|