Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 91) sorted by relevance

1234

/art/tools/
Dstream-trace-converter.py71 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/optimizing/
Dloop_optimization_test.cc62 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in AddLoop() local
64 graph_->AddBlock(header); in AddLoop()
67 position->ReplaceSuccessor(successor, header); in AddLoop()
68 header->AddSuccessor(body); in AddLoop()
69 header->AddSuccessor(successor); in AddLoop()
70 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in AddLoop()
71 body->AddSuccessor(header); in AddLoop()
73 return header; in AddLoop()
201 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in TEST_F() local
203 graph_->AddBlock(header); in TEST_F()
[all …]
Dsuperblock_cloner_test.cc162 HBasicBlock* header = nullptr; in TEST_F() local
165 CreateBasicLoopControlFlow(&header, &loop_body); in TEST_F()
166 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
170 HSuspendCheck* old_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F()
184 HSuspendCheck* new_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F()
192 HBasicBlock* header = nullptr; in TEST_F() local
196 CreateBasicLoopControlFlow(&header, &loop_body); in TEST_F()
197 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
206 HLoopInformation* loop_info = header->GetLoopInformation(); in TEST_F()
271 HBasicBlock* header = nullptr; in TEST_F() local
[all …]
Dlinear_order.cc59 for (HBasicBlock* header : graph->GetBlocks()) { in IsLinearOrderWellFormed()
60 if (header == nullptr || !header->IsLoopHeader()) { in IsLinearOrderWellFormed()
63 HLoopInformation* loop = header->GetLoopInformation(); in IsLinearOrderWellFormed()
69 if (found_blocks == 1u && block != header) { in IsLinearOrderWellFormed()
/art/libdexfile/dex/
Ddex_file_loader_test.cc278 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 …]
Dcompact_dex_file_test.cc29 uint8_t header[len] = {}; in TEST() local
30 std::fill_n(header, len, 0x99); in TEST()
34 CompactDexFile::WriteMagic(header); in TEST()
37 CompactDexFile::WriteCurrentVersion(header); in TEST()
39 EXPECT_EQ(valid_magic, CompactDexFile::IsMagicValid(header)); in TEST()
40 EXPECT_EQ(valid_version, CompactDexFile::IsVersionValid(header)); in TEST()
41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); in TEST()
42 EXPECT_EQ(valid_magic && valid_version, DexFileLoader::IsVersionAndMagicValid(header)); in TEST()
Dtest_dex_file_builder.h91 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build() local
92 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); in Build()
93 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
94 header->header_size_ = sizeof(DexFile::Header); in Build()
95 header->endian_tag_ = DexFile::kDexEndianConstant; in Build()
96 header->link_size_ = 0u; // Unused. in Build()
97 header->link_off_ = 0u; // Unused. in Build()
98 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder in Build()
111 header->string_ids_size_ = strings_.size(); in Build()
112 header->string_ids_off_ = strings_.empty() ? 0u : string_ids_offset; in Build()
[all …]
Dcode_item_accessors_test.cc33 CompactDexFile::Header* header = in CreateFakeDex() local
35 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex()
36 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex()
37 header->data_off_ = 0; in CreateFakeDex()
38 header->data_size_ = data->size(); in CreateFakeDex()
/art/dexlayout/
Dcompact_dex_writer.cc273 CompactDexFile::Header header; in WriteHeader() local
274 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
275 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader()
276 header.checksum_ = header_->Checksum(); in WriteHeader()
277 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader()
278 header.file_size_ = header_->FileSize(); in WriteHeader()
281 header.header_size_ = GetHeaderSize(); in WriteHeader()
282 header.endian_tag_ = header_->EndianTag(); in WriteHeader()
283 header.link_size_ = header_->LinkSize(); in WriteHeader()
284 header.link_off_ = header_->LinkOffset(); in WriteHeader()
[all …]
Ddex_visualize.cc49 explicit Dumper(dex_ir::Header* header) in Dumper() argument
52 dex_ir::GetSortedDexFileSections(header, dex_ir::SortDirection::kSortDescending)) { } in Dumper()
245 void VisualizeDexLayout(dex_ir::Header* header, in VisualizeDexLayout() argument
249 std::unique_ptr<Dumper> dumper(new Dumper(header)); in VisualizeDexLayout()
255 const uint32_t class_defs_size = header->GetCollections().ClassDefsSize(); in VisualizeDexLayout()
257 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); in VisualizeDexLayout()
304 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, in FindNextByteAfterSection() argument
313 return header->FileSize(); in FindNextByteAfterSection()
319 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { in ShowDexSectionStatistics() argument
323 header->FileSize()); in ShowDexSectionStatistics()
[all …]
Ddex_visualize.h36 void VisualizeDexLayout(dex_ir::Header* header,
41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
Ddex_writer.cc746 StandardDexFile::Header header; in WriteHeader() local
748 StandardDexFile::WriteMagic(header.magic_); in WriteHeader()
750 StandardDexFile::WriteCurrentVersion(header.magic_); in WriteHeader()
755 std::copy_n(header_->Magic(), kMagicAndVersionLen, header.magic_); in WriteHeader()
757 header.checksum_ = header_->Checksum(); in WriteHeader()
758 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader()
759 header.file_size_ = header_->FileSize(); in WriteHeader()
760 header.header_size_ = GetHeaderSize(); in WriteHeader()
761 header.endian_tag_ = header_->EndianTag(); in WriteHeader()
762 header.link_size_ = header_->LinkSize(); in WriteHeader()
[all …]
/art/compiler/jit/
Djit_logger.cc233 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/tools/dexfuzz/src/dexfuzz/rawdex/
DRawDexFile.java28 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 …]
DOffsetTracker.java324 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()
/art/test/098-ddmc/
Dexpected.txt2 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/test/509-pre-header/
Dinfo.txt2 The invariant that the pre header of a loop header is the
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h33 const DexFile::Header& header, in DexCacheArraysLayout() argument
38 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), in DexCacheArraysLayout()
40 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), in DexCacheArraysLayout()
42 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), in DexCacheArraysLayout()
44 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), MethodTypesAlignment())), in DexCacheArraysLayout()
46 RoundUp(method_types_offset_ + MethodTypesSize(header.proto_ids_size_), in DexCacheArraysLayout()
/art/test/566-polymorphic-inlining/
Dpolymorphic_inline.cc36 OatQuickMethodHeader* header = nullptr; in do_checks() local
41 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
51 CodeInfo info = header->GetOptimizedCodeInfo(); in do_checks()
/art/test/663-odd-dex-size/
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-size2/
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/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/runtime/
Doat_quick_method_header.h46 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/debug/
Delf_debug_frame_writer.h249 dwarf::Writer<> header(&buffer); in WriteCFISection()
250 header.PushUint8(1); // Version. in WriteCFISection()
253 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4); in WriteCFISection()
255 header.PushUint8(dwarf::DW_EH_PE_udata4); in WriteCFISection()
258 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4); in WriteCFISection()
260 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u)); in WriteCFISection()
262 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); in WriteCFISection()

1234