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

/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...]
H A Dcpplint.py57 # - Avoid inlining non-trivial constructors in header files
141 The root directory used for deriving header guard CPP variable.
142 By default, the header guard CPP variable is calculated as the relative
149 Assuing that src/.git exists, the header guard CPP variables for
356 # The root directory used for deriving header guard CPP variable.
432 Call CheckNextIncludeOrder() once for each header in the file, passing
446 _C_SYS_HEADER: 'C system header',
447 _CPP_SYS_HEADER: 'C++ system header',
448 _LIKELY_MY_HEADER: 'header this file implements',
449 _POSSIBLE_MY_HEADER: 'header thi
[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 Ddex_file_verifier_test.cc161 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); local
162 uint32_t expected_size = header->file_size_;
167 header->checksum_ = adler_checksum;
H A Dtrace.cc573 static constexpr size_t kMinBufSize = 18U; // Trace header is up to 18B.
599 static_assert(18 <= kMinBufSize, "Minimum buffer size not large enough for trace header");
702 std::string header(os.str());
710 if (!file.WriteFully(header.c_str(), header.length())) {
722 iov[0].iov_base = reinterpret_cast<void*>(const_cast<char*>(header.c_str()));
723 iov[0].iov_len = header.length();
729 LOG(INFO) << "Trace sent:\n" << header;
733 if (!trace_file_->WriteFully(header.c_str(), header
[all...]
H A Dintern_table.cc155 const ImageHeader* const header = &image_space->GetImageHeader(); local
157 const ImageSection& section = header->GetImageSection(ImageHeader::kSectionInternedStrings);
162 mirror::Object* root = header->GetImageRoot(ImageHeader::kDexCaches);
H A Delf_file.cc183 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of "
190 // first just map ELF header to get program header size information
197 // then remap to cover program header
201 "header of %zd bytes: '%s'", file_length,
236 *error_msg = StringPrintf("Failed to find shstrtab section header in ELF file: '%s'",
241 // Find .dynamic section info from program header
244 *error_msg = StringPrintf("Failed to find PT_DYNAMIC program header in ELF file: '%s'",
258 *error_msg = StringPrintf("Failed to find section header for section %d in ELF file: '%s'",
398 *error_msg = StringPrintf("Failed to find PT_DYNAMIC program header i
1783 uint8_t* header = map->Begin(); local
1817 uint8_t* header = map->Begin(); local
[all...]
H A Doat_file.cc383 *error_msg = StringPrintf("Invalid oat header for '%s': %s", GetLocation().c_str(),
473 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer); local
476 oat += (sizeof(*methods_offsets_pointer) * header->class_defs_size_);
H A Dstack.cc689 const auto& header = image_space->GetImageHeader(); local
690 const auto* methods = &header.GetMethodsSection();
H A Dclass_linker.cc1030 auto& header = space->GetImageHeader(); local
1031 auto& methods = header.GetMethodsSection();
1190 const auto& header = space->GetImageHeader(); local
1191 const auto& methods = header.GetMethodsSection();
/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...]
H A DMapList.java39 file.seek(rawDexFile.header.mapOff.getOriginalOffset());
/art/compiler/utils/
H A Dtest_dex_file_builder.h88 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); local
89 std::copy_n(DexFile::kDexMagic, 4u, header->magic_);
90 std::copy_n(DexFile::kDexMagicVersion, 4u, header->magic_ + 4u);
91 header->header_size_ = sizeof(header);
92 header->endian_tag_ = DexFile::kDexEndianConstant;
93 header->link_size_ = 0u; // Unused.
94 header->link_off_ = 0u; // Unused.
95 header->map_off_ = 0u; // Unused.
107 header
[all...]
/art/compiler/
H A Delf_writer_debug.cc197 Writer<> header(eh_frame_hdr);
198 header.PushUint8(1); // Version.
201 header.PushUint8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
203 header.PushUint8(DW_EH_PE_udata4);
206 header.PushUint8(DW_EH_PE_datarel | DW_EH_PE_sdata4);
209 header.PushInt32(relative_eh_frame_begin - 4U);
211 header.PushUint32(dchecked_integral_cast<uint32_t>(address_to_fde_offset_map.size()));
216 eh_frame_hdr_patches->push_back(header.data()->size());
217 header.PushUint32(code_address);
221 header
[all...]
H A Delf_builder.h384 return (2 /* header */ + nbuckets + chain_size) * sizeof(Elf_Word);
520 // .dynamic section and needs its own program header with LOAD RW.
640 // The .dynamic section is found using the PT_DYNAMIC program header.
657 Elf_Shdr* header = section->GetHeader(); local
658 Elf_Off alignment = header->sh_addralign > 0 ? header->sh_addralign : 1;
659 header->sh_size = section->GetSize();
660 header->sh_link = section->GetLink();
662 if (header->sh_type != SHT_NOBITS) {
663 header
739 const Elf_Shdr* header = section->GetHeader(); local
[all...]
/art/compiler/optimizing/
H A Dbounds_check_elimination.cc271 // the loop header for loop_info.
275 // Loop header of loop_info. Exiting loop is normal.
303 // Skip loop header. Since narrowed value range of a MonotonicValueRange only
304 // applies to the loop body (after the test at the end of the loop header).
523 HBasicBlock* header = GetLoopHeader(); local
524 HInstruction* instruction = header->GetLastInstruction();
527 HLoopInformation* loop_info = header->GetLoopInformation();
630 // Try to add HDeoptimize's in the loop pre-header first to narrow this range.
659 // deoptimizations in the loop pre-header (suppose end is not inclusive).
700 HBasicBlock* header local
733 HBasicBlock* header = induction_variable_->GetBlock(); local
779 HBasicBlock* header = induction_variable_->GetBlock(); local
813 HBasicBlock* header = induction_variable_->GetBlock(); local
844 HBasicBlock* header = induction_variable_->GetBlock(); local
875 HBasicBlock* header = induction_variable_->GetBlock(); local
925 HBasicBlock* header = induction_variable_->GetBlock(); local
[all...]
H A Dnodes.cc210 void HGraph::SimplifyLoop(HBasicBlock* header) { argument
211 HLoopInformation* info = header->GetLoopInformation();
213 // Make sure the loop has only one pre header. This simplifies SSA building by having
214 // to just look at the pre header to know which locals are initialized at entry of the
216 size_t number_of_incomings = header->GetPredecessors().Size() - info->NumberOfBackEdges();
218 HBasicBlock* pre_header = new (arena_) HBasicBlock(this, header->GetDexPc());
222 for (size_t pred = 0; pred < header->GetPredecessors().Size(); ++pred) {
223 HBasicBlock* predecessor = header->GetPredecessors().Get(pred);
225 predecessor->ReplaceSuccessor(header, pre_header);
229 pre_header->AddSuccessor(header);
1407 TransformLoopHeaderForBCE(HBasicBlock* header) argument
[all...]
H A Dregister_allocator.cc1155 // If `to` is in a loop, find the outermost loop header which does not contain `from`.
1157 HBasicBlock* header = it.Current()->GetHeader(); local
1158 if (block_from->GetLifetimeStart() >= header->GetLifetimeStart()) {
1161 block_to = header;
H A Dnodes.h166 // visit for eliminating dead phis: a dead phi can only have loop header phi
181 // loop is not natural, that is the header does not dominate the
190 void TransformLoopHeaderForBCE(HBasicBlock* header);
196 void SimplifyLoop(HBasicBlock* header);
388 HLoopInformation(HBasicBlock* header, HGraph* graph) argument
389 : header_(header),
447 // that is the header dominates the back edge.
723 // Note that a non loop header having a loop information means this loop information
1155 // require an environment (like HDeoptimization) in the loop pre-header.
/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/runtime/jdwp/
H A Djdwp_event.cc729 * the header.
738 * Write the header into the buffer and send the packet off to the debugger.
1266 * Setup the header for a chunk of DDM data.
1271 /* form the header (JDWP plus DDMS) */
1289 uint8_t header[kJDWPHeaderLen + 8] = { 0 }; local
1297 * "Wrap" the contents of the iovec with a JDWP/DDMS header. We do
1298 * this by creating a new copy of the vector with space for the header.
1307 SetupChunkHeader(type, dataLen, sizeof(header), header);
1309 wrapiov[0].iov_base = header;
[all...]

Completed in 433 milliseconds