Home | History | Annotate | Download | only in compiler

Lines Matching defs:dex_file

24 #include "dex_file-inl.h"
108 const DexFile* dex_file = (*dex_files_)[i];
109 CHECK(dex_file != NULL);
110 OatDexFile* oat_dex_file = new OatDexFile(offset, *dex_file);
128 const DexFile* dex_file = (*dex_files_)[i];
129 offset += dex_file->GetHeader().file_size_;
138 const DexFile* dex_file = (*dex_files_)[i];
140 class_def_index < dex_file->NumClassDefs();
143 const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_index);
144 const byte* class_data = dex_file->GetClassData(class_def);
147 ClassDataItemIterator it(*dex_file, class_data);
153 ClassReference class_ref(dex_file, class_def_index);
213 const DexFile* dex_file = (*dex_files_)[i];
214 CHECK(dex_file != NULL);
215 offset = InitOatCodeDexFile(offset, oat_class_index, *dex_file);
222 const DexFile& dex_file) {
224 class_def_index < dex_file.NumClassDefs();
226 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index);
227 offset = InitOatCodeClassDef(offset, oat_class_index, class_def_index, dex_file, class_def);
235 const DexFile& dex_file,
237 const byte* class_data = dex_file.GetClassData(class_def);
242 ClassDataItemIterator it(dex_file, class_data);
258 &dex_file);
266 &dex_file);
279 uint32_t method_idx, const DexFile* dex_file) {
296 compiler_driver_->GetCompiledMethod(MethodReference(dex_file, method_idx));
361 ClassReference class_ref(dex_file, class_def_index);
374 << PrettyMethod(method_idx, *dex_file);
400 mirror::DexCache* dex_cache = linker->FindDexCache(*dex_file);
403 mirror::ArtMethod* method = linker->ResolveMethod(*dex_file, method_idx, dex_cache,
520 const DexFile* dex_file = (*dex_files_)[i];
522 << " Expected: " << expected_offset << " File: " << dex_file->GetLocation();
525 const DexFile* dex_file = (*dex_files_)[i];
526 if (!out.WriteFully(&dex_file->GetHeader(), dex_file->GetHeader().file_size_)) {
527 PLOG(ERROR) << "Failed to write dex file " << dex_file->GetLocation()
531 size_dex_file_ += dex_file->GetHeader().file_size_;
587 const DexFile* dex_file = (*dex_files_)[i];
588 CHECK(dex_file != NULL);
590 *dex_file);
600 const DexFile& dex_file) {
601 for (size_t class_def_index = 0; class_def_index < dex_file.NumClassDefs();
603 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index);
605 dex_file, class_def);
614 const DexFile& dex_file, OutputStream& out) const {
615 PLOG(ERROR) << "Failed to write " << what << " for " << PrettyMethod(method_idx, dex_file)
623 const DexFile& dex_file,
625 const byte* class_data = dex_file.GetClassData(class_def);
630 ClassDataItemIterator it(dex_file, class_data);
644 dex_file);
653 class_def_method_index, false, it.GetMemberIndex(), dex_file);
666 uint32_t method_idx, const DexFile& dex_file) {
668 compiler_driver_->GetCompiledMethod(MethodReference(&dex_file, method_idx));
700 << PrettyMethod(method_idx, dex_file);
702 DCHECK(code_offset == method_offsets.code_offset_) << PrettyMethod(method_idx, dex_file);
704 ReportWriteFailure("method code size", method_idx, dex_file, out);
711 ReportWriteFailure("method code", method_idx, dex_file, out);
730 << PrettyMethod(method_idx, dex_file);
734 << PrettyMethod(method_idx, dex_file);
736 ReportWriteFailure("mapping table", method_idx, dex_file, out);
754 << PrettyMethod(method_idx, dex_file);
758 << PrettyMethod(method_idx, dex_file);
760 ReportWriteFailure("vmap table", method_idx, dex_file, out);
778 << PrettyMethod(method_idx, dex_file);
782 << PrettyMethod(method_idx, dex_file);
784 ReportWriteFailure("GC map", method_idx, dex_file, out);
796 OatWriter::OatDexFile::OatDexFile(size_t offset, const DexFile& dex_file) {
798 const std::string& location(dex_file.GetLocation());
801 dex_file_location_checksum_ = dex_file.GetLocationChecksum();
803 methods_offsets_.resize(dex_file.NumClassDefs());