Lines Matching refs:UNLIKELY

70   if (UNLIKELY(!CheckIndex(idx, dex_file_->NumStringIds(), error_string))) {  in CheckLoadStringByIdx()
77 if (UNLIKELY(!CheckIndex(type_idx, dex_file_->NumTypeIds(), error_string))) { in CheckLoadStringByTypeIdx()
86 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumFieldIds(), error_string))) { in CheckLoadFieldId()
93 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumMethodIds(), err_string))) { in CheckLoadMethodId()
102 if (UNLIKELY(var == nullptr)) { \
109 if (UNLIKELY(var == nullptr)) { \
116 if (UNLIKELY(var == nullptr)) { \
123 if (UNLIKELY(var == nullptr)) { \
141 if (UNLIKELY(!is_return_type)) { in CheckShortyDescriptorMatch()
154 if (UNLIKELY((descriptor[0] != shorty_char) || (descriptor[1] != '\0'))) { in CheckShortyDescriptorMatch()
161 if (UNLIKELY((descriptor[0] != 'L') && (descriptor[0] != '['))) { in CheckShortyDescriptorMatch()
194 if (UNLIKELY((range_start < file_start) || (range_end > file_end))) { in CheckListSize()
222 if (UNLIKELY(field >= limit)) { in CheckIndex()
310 if (UNLIKELY(last_offset >= item->offset_ && i != 0)) { in CheckMap()
314 if (UNLIKELY(item->offset_ >= header_->file_size_)) { in CheckMap()
322 if (UNLIKELY(icount > data_items_left)) { in CheckMap()
332 if (UNLIKELY(bit == 0)) { in CheckMap()
337 if (UNLIKELY((used_bits & bit) != 0)) { in CheckMap()
348 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeHeaderItem)) == 0)) { in CheckMap()
352 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeMapList)) == 0)) { in CheckMap()
356 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeStringIdItem)) == 0 && in CheckMap()
361 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeTypeIdItem)) == 0 && in CheckMap()
366 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeProtoIdItem)) == 0 && in CheckMap()
371 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeFieldIdItem)) == 0 && in CheckMap()
376 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeMethodIdItem)) == 0 && in CheckMap()
381 if (UNLIKELY((used_bits & MapTypeToBitMask(DexFile::kDexTypeClassDefItem)) == 0 && in CheckMap()
408 if (UNLIKELY((size < -65536) || (size > 65536))) { in CheckAndGetHandlerOffsets()
429 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets()
437 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets()
454 if (UNLIKELY(is_static != expect_static)) { in CheckClassDataItemField()
459 if (UNLIKELY((access_flags & ~kAccJavaFlagsMask) != 0)) { in CheckClassDataItemField()
478 if (UNLIKELY(is_direct != expect_direct)) { in CheckClassDataItemMethod()
485 if (UNLIKELY(((access_flags & ~access_method_mask) != 0) || in CheckClassDataItemMethod()
491 if (UNLIKELY(expect_code && (code_offset == 0))) { in CheckClassDataItemMethod()
495 } else if (UNLIKELY(!expect_code && (code_offset != 0))) { in CheckClassDataItemMethod()
510 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
532 if (UNLIKELY(value_arg != 0)) { in CheckEncodedValue()
540 if (UNLIKELY(value_arg > 1)) { in CheckEncodedValue()
548 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
559 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
570 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
582 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
593 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
604 if (UNLIKELY(value_arg != 0)) { in CheckEncodedValue()
613 if (UNLIKELY(value_arg != 0)) { in CheckEncodedValue()
622 if (UNLIKELY(value_arg != 0)) { in CheckEncodedValue()
628 if (UNLIKELY(value_arg > 1)) { in CheckEncodedValue()
668 if (UNLIKELY(last_idx >= idx && i != 0)) { in CheckEncodedAnnotation()
748 if (UNLIKELY(code_item->ins_size_ > code_item->registers_size_)) { in CheckIntraCodeItem()
754 if (UNLIKELY((code_item->outs_size_ > 5) && in CheckIntraCodeItem()
794 if (UNLIKELY((handlers_size == 0) || (handlers_size >= 65536))) { in CheckIntraCodeItem()
806 if (UNLIKELY(try_items->start_addr_ < last_addr)) { in CheckIntraCodeItem()
811 if (UNLIKELY(try_items->start_addr_ >= insns_size)) { in CheckIntraCodeItem()
823 if (UNLIKELY(i == handlers_size)) { in CheckIntraCodeItem()
829 if (UNLIKELY(last_addr > insns_size)) { in CheckIntraCodeItem()
846 if (UNLIKELY(ptr_ >= file_end)) { in CheckIntraStringDataItem()
857 if (UNLIKELY(byte == 0)) { in CheckIntraStringDataItem()
885 if (UNLIKELY((byte2 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
890 if (UNLIKELY((value != 0) && (value < 0x80))) { in CheckIntraStringDataItem()
899 if (UNLIKELY((byte2 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
904 if (UNLIKELY((byte3 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
909 if (UNLIKELY(value < 0x800)) { in CheckIntraStringDataItem()
918 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
929 if (UNLIKELY(parameters_size > 65536)) { in CheckIntraDebugInfoItem()
960 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
983 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
991 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
1072 if (UNLIKELY(last_idx >= field_item->field_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1090 if (UNLIKELY(last_idx >= method_item->method_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1110 if (UNLIKELY(last_idx >= parameter_item->method_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1264 if (UNLIKELY(aligned_offset > size_)) { in CheckIntraSectionIterate()
1311 if (UNLIKELY(offset != expected_offset)) { in CheckIntraIdSection()
1315 if (UNLIKELY(count != expected_size)) { in CheckIntraIdSection()
1328 if (UNLIKELY((offset < data_start) || (offset > data_end))) { in CheckIntraDataSection()
1363 } else if (UNLIKELY(offset > section_offset)) { in CheckIntraSection()
1371 if (UNLIKELY(section_count != 1)) { in CheckIntraSection()
1375 if (UNLIKELY(section_offset != 0)) { in CheckIntraSection()
1394 if (UNLIKELY(section_count != 1)) { in CheckIntraSection()
1398 if (UNLIKELY(section_offset != header_->map_off_)) { in CheckIntraSection()
1434 if (UNLIKELY(it == offset_to_type_map_.end())) { in CheckOffsetToTypeMap()
1438 if (UNLIKELY(it->second != type)) { in CheckOffsetToTypeMap()
1507 if (UNLIKELY(CompareModifiedUtf8ToModifiedUtf8AsUtf16CodePointValues(prev_str, str) >= 0)) { in CheckInterStringIdItem()
1523 if (UNLIKELY(!IsValidDescriptor(descriptor))) { in CheckInterTypeIdItem()
1531 if (UNLIKELY(prev_item->descriptor_idx_ >= item->descriptor_idx_)) { in CheckInterTypeIdItem()
1572 if (UNLIKELY(it.HasNext() || *shorty != '\0')) { in CheckInterProtoIdItem()
1580 if (UNLIKELY(prev->return_type_idx_ > item->return_type_idx_)) { in CheckInterProtoIdItem()
1593 if (UNLIKELY(curr_idx == DexFile::kDexNoIndex16)) { in CheckInterProtoIdItem()
1600 } else if (UNLIKELY(prev_idx > curr_idx)) { in CheckInterProtoIdItem()
1620 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || class_descriptor[0] != 'L')) { in CheckInterFieldIdItem()
1627 if (UNLIKELY(!IsValidDescriptor(type_descriptor) || type_descriptor[0] == 'V')) { in CheckInterFieldIdItem()
1634 if (UNLIKELY(!IsValidMemberName(descriptor))) { in CheckInterFieldIdItem()
1642 if (UNLIKELY(prev_item->class_idx_ > item->class_idx_)) { in CheckInterFieldIdItem()
1646 if (UNLIKELY(prev_item->name_idx_ > item->name_idx_)) { in CheckInterFieldIdItem()
1650 if (UNLIKELY(prev_item->type_idx_ >= item->type_idx_)) { in CheckInterFieldIdItem()
1667 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || (class_descriptor[0] != 'L' && in CheckInterMethodIdItem()
1675 if (UNLIKELY(!IsValidMemberName(descriptor))) { in CheckInterMethodIdItem()
1681 if (UNLIKELY(!CheckIndex(item->proto_idx_, dex_file_->NumProtoIds(), in CheckInterMethodIdItem()
1689 if (UNLIKELY(prev_item->class_idx_ > item->class_idx_)) { in CheckInterMethodIdItem()
1693 if (UNLIKELY(prev_item->name_idx_ > item->name_idx_)) { in CheckInterMethodIdItem()
1697 if (UNLIKELY(prev_item->proto_idx_ >= item->proto_idx_)) { in CheckInterMethodIdItem()
1720 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || class_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1751 if (UNLIKELY(!IsValidDescriptor(superclass_descriptor) || superclass_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1765 if (UNLIKELY(!IsValidDescriptor(inf_descriptor) || inf_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1779 if (UNLIKELY(idx1 == idx2)) { in CheckInterClassDefItem()
1795 if (UNLIKELY((data_definer != item->class_idx_) && (data_definer != DexFile::kDexNoIndex16))) { in CheckInterClassDefItem()
1809 if (UNLIKELY((annotations_definer != item->class_idx_) && in CheckInterClassDefItem()
1855 if (UNLIKELY(last_idx >= idx && i != 0)) { in CheckInterAnnotationSetItem()
1878 if (UNLIKELY(field->class_idx_ != defining_class)) { in CheckInterClassDataItem()
1889 if (UNLIKELY(method->class_idx_ != defining_class)) { in CheckInterClassDataItem()
1920 if (UNLIKELY(field->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()
1937 if (UNLIKELY(method->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()
1954 if (UNLIKELY(parameter_method->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()