/art/test/566-polymorphic-inlining/ |
H A D | polymorphic_inline.cc | 33 OatQuickMethodHeader* header = nullptr; local 36 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode()); 37 if (code_cache->ContainsPc(header->GetCode())) { 45 CodeInfo info = header->GetOptimizedCodeInfo();
|
/art/test/570-checker-osr/ |
H A D | osr.cc | 42 const OatQuickMethodHeader* header = local 44 if (header != nullptr && header == GetCurrentOatQuickMethodHeader()) {
|
/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...] |
/art/runtime/ |
H A D | oat_quick_method_header.h | 43 uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); local 45 IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))) 46 << std::hex << code << " " << std::hex << header; local 47 return reinterpret_cast<OatQuickMethodHeader*>(header); 128 // The offset in bytes from the start of the vmap table to the end of the header.
|
H A D | dex_file_test.cc | 173 const DexFile::Header& header = raw->GetHeader(); local 174 // TODO: header.magic_ 175 EXPECT_EQ(0x00d87910U, header.checksum_); 176 // TODO: header.signature_ 177 EXPECT_EQ(904U, header.file_size_); 178 EXPECT_EQ(112U, header.header_size_); 179 EXPECT_EQ(0U, header.link_size_); 180 EXPECT_EQ(0U, header.link_off_); 181 EXPECT_EQ(15U, header.string_ids_size_); 182 EXPECT_EQ(112U, header [all...] |
H A D | dex_file_verifier_test.cc | 114 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); local 115 uint32_t expected_size = header->file_size_; 120 header->checksum_ = adler_checksum; 1413 DexFile::Header* header = const_cast<DexFile::Header*>( 1418 off_ptr = &header->map_off_; 1421 off_ptr = &header->string_ids_off_; 1424 off_ptr = &header->type_ids_off_; 1427 off_ptr = &header->proto_ids_off_; 1430 off_ptr = &header->field_ids_off_; 1433 off_ptr = &header [all...] |
H A D | intern_table.cc | 179 const ImageHeader* const header = &image_space->GetImageHeader(); local 181 const ImageSection& section = header->GetImageSection(ImageHeader::kSectionInternedStrings); 186 mirror::Object* root = header->GetImageRoot(ImageHeader::kDexCaches);
|
H A D | oat_file.cc | 239 *error_msg = StringPrintf("Invalid oat header for '%s': %s", 335 "offset %u of %zu but the size of dex file header is %zu", 364 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer); local 365 if (Size() - dex_file_offset < header->file_size_) { 372 header->file_size_, 387 UNLIKELY((Size() - class_offsets_offset) / sizeof(uint32_t) < header->class_defs_size_)) { 395 header->class_defs_size_); 425 TypeLookupTable::RawDataLength(header->class_defs_size_)))) { 433 header->class_defs_size_); 439 DexCacheArraysLayout layout(pointer_size, *header); [all...] |
H A D | stack.cc | 680 const auto& header = image_space->GetImageHeader(); local 681 const ImageSection& methods = header.GetMethodsSection(); 682 const ImageSection& runtime_methods = header.GetRuntimeMethodsSection();
|
H A D | dex_file_verifier.cc | 263 // Check file size from the header. 270 // Compute and verify the checksum in the header. 280 // Check the contents of the header. 287 ErrorStringPrintf("Bad header size: %ud", header_->header_size_); 397 ErrorStringPrintf("Map is missing header entry"); 599 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "encoded_value header")) { 1487 // Get the expected offset and size from the header. 1518 // Check that the offset and size are what were expected from the header. 1580 ErrorStringPrintf("Multiple header items"); 1607 ErrorStringPrintf("Map not at header 2421 GetStringOrError(const uint8_t* const begin, const DexFile::Header* const header, uint32_t string_idx) argument 2439 GetClassOrError(const uint8_t* const begin, const DexFile::Header* const header, uint32_t class_idx) argument 2456 GetFieldDescriptionOrError(const uint8_t* const begin, const DexFile::Header* const header, uint32_t idx) argument 2473 GetMethodDescriptionOrError(const uint8_t* const begin, const DexFile::Header* const header, uint32_t idx) argument 2573 FindMethodName(uint32_t method_index, const uint8_t* begin, const DexFile::Header* header, const char** str, std::string* error_msg) argument [all...] |
H A D | elf_file.cc | 112 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " 119 // first just map ELF header to get program header size information 133 // then remap to cover program header 137 "header of %zd bytes: '%s'", file_length, 186 *error_msg = StringPrintf("Failed to find shstrtab section header in ELF file: '%s'", 191 // Find .dynamic section info from program header 194 *error_msg = StringPrintf("Failed to find PT_DYNAMIC program header in ELF file: '%s'", 208 *error_msg = StringPrintf("Failed to find section header for section %d in ELF file: '%s'", 344 *error_msg = StringPrintf("Failed to find PT_DYNAMIC program header i 1699 uint8_t* header = map->Begin(); local 1749 uint8_t* header = map->Begin(); local [all...] |
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout-inl.h | 31 const DexFile::Header& header) 35 RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), 37 RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), 39 RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), 41 RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), Alignment())) { 30 DexCacheArraysLayout(size_t pointer_size, const DexFile::Header& header) argument
|
/art/test/common/ |
H A D | runtime_state.cc | 141 OatQuickMethodHeader* header = nullptr; local 145 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode()); 146 if (code_cache->ContainsPc(header->GetCode())) {
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
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 | 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...] |
/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?
|
H A D | image_space.cc | 233 *error_msg = StringPrintf("Unable to read image header for %s", filename); 265 *error_msg = StringPrintf("Unable to read image header for %s at %s", 270 *error_msg = StringPrintf("Unable to read image header for %s at %s", 1175 *error_msg = StringPrintf("Invalid image header in '%s'", image_filename); 1179 // Check that the file is larger or equal to the header size + data size. 1234 // Note: The image header is part of the image due to mmap page alignment required of offset. 1257 *error_msg = StringPrintf("Invalid storage mode in image header %d", 1271 const size_t decompress_offset = sizeof(ImageHeader); // Skip the header. 1328 // Loaded the map, use the image header from the file now in case we patch it with 1610 const ImageHeader& header local [all...] |
/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/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);
|
/art/compiler/optimizing/ |
H A D | induction_var_range.cc | 152 HBasicBlock* header = loop->GetHeader(); local 153 bool in_body = context->GetBlock() != header; 155 induction_analysis_->LookupInfo(loop, header->GetLastInstruction()); 597 HBasicBlock* header = loop->GetHeader(); local 600 induction_analysis_->LookupInfo(loop, header->GetLastInstruction()); 623 HBasicBlock* header = loop->GetHeader(); local 624 bool in_body = context->GetBlock() != header; 626 induction_analysis_->LookupInfo(loop, header->GetLastInstruction());
|
H A D | register_allocator.cc | 184 // intervals belonging to the live-in set of the catch/header block to be spilled. 1246 // If `to` is in a loop, find the outermost loop header which does not contain `from`. 1248 HBasicBlock* header = it.Current()->GetHeader(); local 1249 if (block_from->GetLifetimeStart() >= header->GetLifetimeStart()) { 1252 block_to = header; 1926 // Instructions live at the top of catch blocks or irreducible loop header
|
H A D | bounds_check_elimination.cc | 627 // Make sure the comparison is in the loop header so each increment is 647 // Comparison needs to be in loop header to make sure it's done after each 723 // if it's not defined in the loop header. 1499 * instruction appears in the loop header or proper loop-body. 1504 HBasicBlock* header = loop->GetHeader(); local 1505 const uint32_t loop_id = header->GetBlockId(); 1511 if (instruction->GetBlock() == header) { 1562 * header 1593 HBasicBlock* header = loop->GetHeader(); local 1594 GetGraph()->TransformLoopHeaderForBCE(header); [all...] |
H A D | nodes.cc | 335 void HGraph::SimplifyLoop(HBasicBlock* header) { argument 336 HLoopInformation* info = header->GetLoopInformation(); 338 // Make sure the loop has only one pre header. This simplifies SSA building by having 339 // to just look at the pre header to know which locals are initialized at entry of the 340 // loop. Also, don't allow the entry block to be a pre header: this simplifies inlining 342 size_t number_of_incomings = header->GetPredecessors().size() - info->NumberOfBackEdges(); 343 if (number_of_incomings != 1 || (GetEntryBlock()->GetSingleSuccessor() == header)) { 344 HBasicBlock* pre_header = new (arena_) HBasicBlock(this, header->GetDexPc()); 346 pre_header->AddInstruction(new (arena_) HGoto(header->GetDexPc())); 348 for (size_t pred = 0; pred < header 2198 TransformLoopHeaderForBCE(HBasicBlock* header) argument [all...] |
/art/runtime/jdwp/ |
H A D | jdwp_event.cc | 728 * the header. 737 * Write the header into the buffer and send the packet off to the debugger. 1265 * Setup the header for a chunk of DDM data. 1270 /* form the header (JDWP plus DDMS) */ 1288 uint8_t header[kJDWPHeaderLen + 8] = { 0 }; local 1296 * "Wrap" the contents of the iovec with a JDWP/DDMS header. We do 1297 * this by creating a new copy of the vector with space for the header. 1306 SetupChunkHeader(type, dataLen, sizeof(header), header); 1308 wrapiov[0].iov_base = header; [all...] |
/art/runtime/jit/ |
H A D | jit_code_cache.cc | 318 // Ensure the header ends up at expected instruction alignment. 972 const OatQuickMethodHeader* header) { 975 (profiling_info->GetSavedEntryPoint() == header->GetEntryPoint())) { 980 if (method->GetEntryPointFromQuickCompiledCode() == header->GetEntryPoint()) { 990 if (it != osr_code_map_.end() && OatQuickMethodHeader::FromCodePointer(it->second) == header) { 1004 // Ensure the header ends up at expected instruction alignment. 971 InvalidateCompiledCodeFor(ArtMethod* method, const OatQuickMethodHeader* header) argument
|