Home | History | Annotate | Download | only in runtime

Lines Matching refs:oat

29 #include "oat.h"
92 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
234 *error_msg = StringPrintf("Invalid oat magic for '%s'", GetLocation().c_str());
237 const byte* oat = Begin();
238 oat += sizeof(OatHeader);
239 if (oat > End()) {
240 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str());
244 oat += GetOatHeader().GetKeyValueStoreSize();
245 if (oat > End()) {
246 *error_msg = StringPrintf("In oat file '%s' found truncated variable-size data: "
256 uint32_t dex_file_location_size = *reinterpret_cast<const uint32_t*>(oat);
258 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with empty location name",
262 oat += sizeof(dex_file_location_size);
263 if (UNLIKELY(oat > End())) {
264 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd truncated after dex file "
269 const char* dex_file_location_data = reinterpret_cast<const char*>(oat);
270 oat += dex_file_location_size;
271 if (UNLIKELY(oat > End())) {
272 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with truncated dex file "
279 uint32_t dex_file_checksum = *reinterpret_cast<const uint32_t*>(oat);
280 oat += sizeof(dex_file_checksum);
281 if (UNLIKELY(oat > End())) {
282 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated after "
288 uint32_t dex_file_offset = *reinterpret_cast<const uint32_t*>(oat);
290 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with zero dex "
295 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with dex file "
300 oat += sizeof(dex_file_offset);
301 if (UNLIKELY(oat > End())) {
302 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated "
310 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid "
316 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid "
322 const uint32_t* methods_offsets_pointer = reinterpret_cast<const uint32_t*>(oat);
324 oat += (sizeof(*methods_offsets_pointer) * header->class_defs_size_);
325 if (UNLIKELY(oat > End())) {
326 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with truncated "
382 // directly mentioned in the oat file and doesn't require locking.
389 // oat file. The correct lookup is via the canonical location but first see in