Searched refs:header (Results 1 - 25 of 38) sorted by relevance

12

/art/test/566-polymorphic-inlining/
H A Dpolymorphic_inline.cc33 OatQuickMethodHeader* header = nullptr; local
36 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode());
37 if (code_cache->ContainsPc(header->GetCode())) {
45 CodeInfo info = header->GetOptimizedCodeInfo();
/art/tools/
H A Dstream-trace-converter.py18 a header and body part, which, when concatenated, make up a non-streaming trace file that
71 def PrintHeader(self, header):
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');
149 def Finalize(self, header):
150 header.write('*threads\n')
152 header
[all...]
/art/runtime/
H A Ddex_file_test.cc173 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 Doat_quick_method_header.h43 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 Ddex_file_verifier.cc263 // 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 Ddex_file_verifier_test.cc114 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 Doat_file.cc239 *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 Dtrace.cc584 static constexpr size_t kMinBufSize = 18U; // Trace header is up to 18B.
610 static_assert(18 <= kMinBufSize, "Minimum buffer size not large enough for trace header");
715 std::string header(os.str());
723 if (!file.WriteFully(header.c_str(), header.length())) {
735 iov[0].iov_base = reinterpret_cast<void*>(const_cast<char*>(header.c_str()));
736 iov[0].iov_len = header.length();
742 LOG(INFO) << "Trace sent:\n" << header;
746 if (!trace_file_->WriteFully(header.c_str(), header
[all...]
/art/runtime/utils/
H A Ddex_cache_arrays_layout-inl.h31 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
H A Ddex_cache_arrays_layout.h41 // Construct a layout for a particular dex file header.
42 DexCacheArraysLayout(size_t pointer_size, const DexFile::Header& header);
/art/compiler/utils/
H A Dtest_dex_file_builder.h89 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/dexfuzz/src/dexfuzz/rawdex/
H A DRawDexFile.java28 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...]
H A DOffset.java62 * 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 DOffsetTracker.java86 * (why? to read, we read the header, then the map list, and then use the map
88 * when we write, we write the header, and then we cannot write the map list
91 * so we can skip there after we write out the header.
148 * Only MapItem should call this method, when the MapItem that points to the header
256 * Called after writing out the header, to skip to after the map list.
323 // Add the field IDs to the header.
324 rawDexFile.header.fieldIdsOff.unsetNullAndPointTo(fieldOffsettable);
325 rawDexFile.header.fieldIdsSize = 1;
362 // Based on the type of the item we just added, check the relevant Offset in the header
365 HeaderItem header
[all...]
/art/compiler/debug/
H A Delf_debug_writer.cc176 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...]
H A Delf_debug_frame_writer.h250 dwarf::Writer<> header(&buffer);
251 header.PushUint8(1); // Version.
254 header.PushUint8(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4);
256 header.PushUint8(dwarf::DW_EH_PE_udata4);
259 header.PushUint8(dwarf::DW_EH_PE_datarel | dwarf::DW_EH_PE_sdata4);
261 header.PushInt32(cfi_section->GetAddress() - (header_address + 4u));
263 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2));
267 // Make addresses section-relative since we know the header address now.
/art/test/570-checker-osr/
H A Dosr.cc42 const OatQuickMethodHeader* header = local
44 if (header != nullptr && header == GetCurrentOatQuickMethodHeader()) {
/art/test/common/
H A Druntime_state.cc141 OatQuickMethodHeader* header = nullptr; local
145 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode());
146 if (code_cache->ContainsPc(header->GetCode())) {
/art/runtime/gc/space/
H A Dbump_pointer_space.cc148 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?
/art/tools/dmtracedump/
H A Dcreatetesttrace.cc20 #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 Dnodes.cc335 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...]
H A Dinduction_var_range.cc152 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 Dssa_liveness_analysis.h973 for (HBasicBlock* header : graph.GetBlocks()) {
974 if (header == nullptr || !header->IsLoopHeader()) {
978 HLoopInformation* loop = header->GetLoopInformation();
986 if (found_blocks == 1u && current != header) {
987 // First block is not the header.
/art/compiler/
H A Doat_writer.cc388 LOG(ERROR) << "Provided data is shorter than dex file header. size: "
395 const UnalignedDexFileHeader* header = AsUnalignedDexFileHeader(data.data());
396 if (data.size() < header->file_size_) {
398 << " file size from header: " << header->file_size_ << " File: " << location;
724 // Update quick method header.
749 offset_ += sizeof(*method_header); // Method header is prepended before code.
1031 ReportWriteFailure("method header", it);
1637 PLOG(ERROR) << "Failed to seek to oat header position in " << out->GetLocation();
1642 // Flush all other data before writing the header
[all...]
/art/runtime/jdwp/
H A Djdwp_event.cc728 * 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...]

Completed in 3295 milliseconds

12