Home
last modified time | relevance | path

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

1234

/art/compiler/optimizing/
Dsuperblock_cloner_test.cc121 HBasicBlock* header = nullptr; in TEST_F() local
125 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
126 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
130 HSuspendCheck* old_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F()
144 HSuspendCheck* new_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F()
152 HBasicBlock* header = nullptr; in TEST_F() local
157 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F()
158 CreateBasicLoopDataFlow(header, loop_body); in TEST_F()
167 HLoopInformation* loop_info = header->GetLoopInformation(); in TEST_F()
233 HBasicBlock* header = nullptr; in TEST_F() local
[all …]
Dloop_optimization_test.cc63 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in AddLoop() local
65 graph_->AddBlock(header); in AddLoop()
68 position->ReplaceSuccessor(successor, header); in AddLoop()
69 header->AddSuccessor(body); in AddLoop()
70 header->AddSuccessor(successor); in AddLoop()
71 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in AddLoop()
72 body->AddSuccessor(header); in AddLoop()
74 return header; in AddLoop()
202 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in TEST_F() local
204 graph_->AddBlock(header); in TEST_F()
[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/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/libdexfile/dex/
Ddex_file_loader_test.cc282 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader() local
283 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); in ValidateDexFileHeader()
284 EXPECT_EQ(0x00d87910U, header.checksum_); in ValidateDexFileHeader()
285 EXPECT_EQ(*kExpectedSha1, *header.signature_); in ValidateDexFileHeader()
286 EXPECT_EQ(904U, header.file_size_); in ValidateDexFileHeader()
287 EXPECT_EQ(112U, header.header_size_); in ValidateDexFileHeader()
288 EXPECT_EQ(0U, header.link_size_); in ValidateDexFileHeader()
289 EXPECT_EQ(0U, header.link_off_); in ValidateDexFileHeader()
290 EXPECT_EQ(15U, header.string_ids_size_); in ValidateDexFileHeader()
291 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.h92 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build() local
93 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); in Build()
94 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
95 header->header_size_ = sizeof(DexFile::Header); in Build()
96 header->endian_tag_ = DexFile::kDexEndianConstant; in Build()
97 header->link_size_ = 0u; // Unused. in Build()
98 header->link_off_ = 0u; // Unused. in Build()
99 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder in Build()
112 header->string_ids_size_ = strings_.size(); in Build()
113 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/compiler/jit/
Djit_logger.cc232 PerfJitHeader header; in WriteJitDumpHeader() local
234 std::memset(&header, 0, sizeof(header)); in WriteJitDumpHeader()
235 header.magic_ = PerfJitHeader::kMagic; in WriteJitDumpHeader()
236 header.version_ = PerfJitHeader::kVersion; in WriteJitDumpHeader()
237 header.size_ = sizeof(header); in WriteJitDumpHeader()
238 header.elf_mach_target_ = GetElfMach(); in WriteJitDumpHeader()
239 header.process_id_ = static_cast<uint32_t>(getpid()); in WriteJitDumpHeader()
240 header.time_stamp_ = art::NanoTime(); // CLOCK_MONOTONIC clock is required. in WriteJitDumpHeader()
241 header.flags_ = 0; in WriteJitDumpHeader()
243 bool res = jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&header), sizeof(header)); in WriteJitDumpHeader()
/art/dexlayout/
Dcompact_dex_writer.cc271 CompactDexFile::Header header; in WriteHeader() local
272 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
273 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader()
274 header.checksum_ = header_->Checksum(); in WriteHeader()
275 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader()
276 header.file_size_ = header_->FileSize(); in WriteHeader()
279 header.header_size_ = GetHeaderSize(); in WriteHeader()
280 header.endian_tag_ = header_->EndianTag(); in WriteHeader()
281 header.link_size_ = header_->LinkSize(); in WriteHeader()
282 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->ClassDefs().Size(); in VisualizeDexLayout()
257 dex_ir::ClassDef* class_def = header->ClassDefs()[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.cc794 StandardDexFile::Header header; in WriteHeader() local
796 StandardDexFile::WriteMagic(header.magic_); in WriteHeader()
798 StandardDexFile::WriteCurrentVersion(header.magic_); in WriteHeader()
800 StandardDexFile::WriteVersionBeforeDefaultMethods(header.magic_); in WriteHeader()
806 std::copy_n(header_->Magic(), kMagicAndVersionLen, header.magic_); in WriteHeader()
808 header.checksum_ = header_->Checksum(); in WriteHeader()
809 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader()
810 header.file_size_ = header_->FileSize(); in WriteHeader()
811 header.header_size_ = GetHeaderSize(); in WriteHeader()
812 header.endian_tag_ = header_->EndianTag(); in WriteHeader()
[all …]
/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/570-checker-osr/
Dosr.cc68 const OatQuickMethodHeader* header = in Java_Main_isInOsrCode()
70 if (header != nullptr && header == stack_visitor->GetCurrentOatQuickMethodHeader()) { in Java_Main_isInOsrCode()
90 const OatQuickMethodHeader* header = in Java_Main_isInInterpreter()
92 if ((header == nullptr || header != stack_visitor->GetCurrentOatQuickMethodHeader()) && in Java_Main_isInInterpreter()
/art/test/509-pre-header/
Dinfo.txt2 The invariant that the pre header of a loop header is the
/art/libdexfile/external/
Ddex_file_ext.cc157 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(addr); in ExtDexFileOpenFromMemory() local
158 uint32_t file_size = header->file_size_; in ExtDexFileOpenFromMemory()
159 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
165 if (__builtin_add_overflow(header->data_off_, header->data_size_, &computed_file_size)) { in ExtDexFileOpenFromMemory()
173 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
191 header->checksum_, in ExtDexFileOpenFromMemory()
246 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(map->data()); in ExtDexFileOpenFromFd() local
248 if (__builtin_add_overflow(offset, header->file_size_, &file_size)) { in ExtDexFileOpenFromFd()
272 header->checksum_, in ExtDexFileOpenFromFd()
/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/runtime/
Dstack_map.cc34 std::array<uint32_t, kNumHeaders> header = reader.ReadInterleavedVarints<kNumHeaders>(); in CodeInfo() local
35 ForEachHeaderField([this, &header](size_t i, auto member_pointer) { in CodeInfo()
36 this->*member_pointer = header[i]; in CodeInfo()
61 CodeInfo::CodeInfo(const OatQuickMethodHeader* header) in CodeInfo() argument
62 : CodeInfo(header->GetOptimizedCodeInfoPtr()) {} in CodeInfo()
71 CodeInfo CodeInfo::DecodeGcMasksOnly(const OatQuickMethodHeader* header) { in DecodeGcMasksOnly() argument
72 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeGcMasksOnly()
80 CodeInfo CodeInfo::DecodeInlineInfoOnly(const OatQuickMethodHeader* header) { in DecodeInlineInfoOnly() argument
81 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeInlineInfoOnly()
108 std::array<uint32_t, kNumHeaders> header; in Dedupe() local
[all …]
Doat_quick_method_header.h47 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer() local
49 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) in FromCodePointer()
50 << std::hex << code << " " << std::hex << header; in FromCodePointer()
51 return reinterpret_cast<OatQuickMethodHeader*>(header); in FromCodePointer()
/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/566-polymorphic-inlining/
Dpolymorphic_inline.cc36 OatQuickMethodHeader* header = nullptr; in do_checks() local
41 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
52 CodeInfo info(header); in do_checks()

1234