/art/compiler/optimizing/ |
D | superblock_cloner_test.cc | 117 HBasicBlock* header = nullptr; in TEST_F() local 121 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F() 122 CreateBasicLoopDataFlow(header, loop_body); in TEST_F() 126 HSuspendCheck* old_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F() 140 HSuspendCheck* new_suspend_check = header->GetLoopInformation()->GetSuspendCheck(); in TEST_F() 148 HBasicBlock* header = nullptr; in TEST_F() local 153 CreateBasicLoopControlFlow(entry_block_, return_block_, &header, &loop_body); in TEST_F() 154 CreateBasicLoopDataFlow(header, loop_body); in TEST_F() 163 HLoopInformation* loop_info = header->GetLoopInformation(); in TEST_F() 229 HBasicBlock* header = nullptr; in TEST_F() local [all …]
|
D | loop_optimization_test.cc | 79 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in AddLoop() local 81 graph_->AddBlock(header); in AddLoop() 84 position->ReplaceSuccessor(successor, header); in AddLoop() 85 header->AddSuccessor(body); in AddLoop() 86 header->AddSuccessor(successor); in AddLoop() 87 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in AddLoop() 88 body->AddSuccessor(header); in AddLoop() 90 return header; in AddLoop() 221 HBasicBlock* header = new (GetAllocator()) HBasicBlock(graph_); in TEST_F() local 223 graph_->AddBlock(header); in TEST_F() [all …]
|
D | linear_order.cc | 59 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/ |
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/libdexfile/dex/ |
D | dex_file_loader_test.cc | 282 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 …]
|
D | compact_dex_file_test.cc | 29 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()
|
D | test_dex_file_builder.h | 90 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); variable 91 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); 92 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); 93 header->header_size_ = sizeof(DexFile::Header); 94 header->endian_tag_ = DexFile::kDexEndianConstant; 95 header->link_size_ = 0u; // Unused. 96 header->link_off_ = 0u; // Unused. 97 header->map_off_ = 0u; // Unused. TODO: This is wrong. Dex files created by this builder 110 header->string_ids_size_ = strings_.size(); 111 header->string_ids_off_ = strings_.empty() ? 0u : string_ids_offset; [all …]
|
D | code_item_accessors_test.cc | 33 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/ |
D | compact_dex_writer.cc | 269 CompactDexFile::Header header; in WriteHeader() local 270 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader() 271 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader() 272 header.checksum_ = header_->Checksum(); in WriteHeader() 273 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader() 274 header.file_size_ = header_->FileSize(); in WriteHeader() 277 header.header_size_ = GetHeaderSize(); in WriteHeader() 278 header.endian_tag_ = header_->EndianTag(); in WriteHeader() 279 header.link_size_ = header_->LinkSize(); in WriteHeader() 280 header.link_off_ = header_->LinkOffset(); in WriteHeader() [all …]
|
D | dex_visualize.cc | 49 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 …]
|
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.cc | 794 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/compiler/jit/ |
D | jit_logger.cc | 232 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/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()
|
/art/test/570-checker-osr/ |
D | osr.cc | 68 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/dex2oat/ |
D | dex2oat_test.cc | 1342 const CompactDexFile::Header& header = dex_file->GetHeader(); in TEST_F() local 1343 EXPECT_LE(header.OwnedDataBegin(), header.OwnedDataEnd()); in TEST_F() 1344 EXPECT_LE(header.OwnedDataBegin(), header.data_size_); in TEST_F() 1345 EXPECT_LE(header.OwnedDataEnd(), header.data_size_); in TEST_F() 1349 ASSERT_GE(method.GetCodeItemOffset(), header.OwnedDataBegin()); in TEST_F() 1350 ASSERT_LT(method.GetCodeItemOffset(), header.OwnedDataEnd()); in TEST_F() 1812 DexFile::Header header = {}; in TEST_F() local 1813 StandardDexFile::WriteMagic(header.magic_); in TEST_F() 1814 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F() 1815 header.file_size_ = 4 * KB; in TEST_F() [all …]
|
/art/runtime/ |
D | stack_map.cc | 34 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() 64 CodeInfo CodeInfo::DecodeGcMasksOnly(const OatQuickMethodHeader* header) { in DecodeGcMasksOnly() argument 65 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeGcMasksOnly() 73 CodeInfo CodeInfo::DecodeInlineInfoOnly(const OatQuickMethodHeader* header) { in DecodeInlineInfoOnly() argument 74 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeInlineInfoOnly() 101 std::array<uint32_t, kNumHeaders> header; in Dedupe() local [all …]
|
D | oat_quick_method_header.h | 44 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); in FromCodePointer() local 46 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) in FromCodePointer() 47 << std::hex << code << " " << std::hex << header; in FromCodePointer() 48 return reinterpret_cast<OatQuickMethodHeader*>(header); in FromCodePointer()
|
/art/test/509-pre-header/ |
D | info.txt | 2 The invariant that the pre header of a loop header is the
|
/art/test/566-polymorphic-inlining/ |
D | polymorphic_inline.cc | 35 OatQuickMethodHeader* header = nullptr; in do_checks() local 42 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks() 53 CodeInfo info(header); 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/libdexfile/external/ |
D | dex_file_ext.cc | 156 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(address); in ADexFile_create() local 157 uint32_t file_size = header->file_size_; in ADexFile_create() 158 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ADexFile_create() 164 if (__builtin_add_overflow(header->data_off_, header->data_size_, &computed_file_size)) { in ADexFile_create() 170 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ADexFile_create() 187 header->checksum_, in ADexFile_create()
|
/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.
|