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()
721 if (UNLIKELY(code_item->ins_size_ > code_item->registers_size_)) { in CheckIntraCodeItem()
727 if (UNLIKELY((code_item->outs_size_ > 5) && in CheckIntraCodeItem()
767 if (UNLIKELY((handlers_size == 0) || (handlers_size >= 65536))) { in CheckIntraCodeItem()
779 if (UNLIKELY(try_items->start_addr_ < last_addr)) { in CheckIntraCodeItem()
784 if (UNLIKELY(try_items->start_addr_ >= insns_size)) { in CheckIntraCodeItem()
796 if (UNLIKELY(i == handlers_size)) { in CheckIntraCodeItem()
802 if (UNLIKELY(last_addr > insns_size)) { in CheckIntraCodeItem()
819 if (UNLIKELY(ptr_ >= file_end)) { in CheckIntraStringDataItem()
830 if (UNLIKELY(byte == 0)) { in CheckIntraStringDataItem()
858 if (UNLIKELY((byte2 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
863 if (UNLIKELY((value != 0) && (value < 0x80))) { in CheckIntraStringDataItem()
872 if (UNLIKELY((byte2 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
877 if (UNLIKELY((byte3 & 0xc0) != 0x80)) { in CheckIntraStringDataItem()
882 if (UNLIKELY(value < 0x800)) { in CheckIntraStringDataItem()
891 if (UNLIKELY(*(ptr_++) != '\0')) { in CheckIntraStringDataItem()
902 if (UNLIKELY(parameters_size > 65536)) { in CheckIntraDebugInfoItem()
933 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
956 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
964 if (UNLIKELY(reg_num >= 65536)) { in CheckIntraDebugInfoItem()
1045 if (UNLIKELY(last_idx >= field_item->field_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1063 if (UNLIKELY(last_idx >= method_item->method_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1083 if (UNLIKELY(last_idx >= parameter_item->method_idx_ && i != 0)) { in CheckIntraAnnotationsDirectoryItem()
1237 if (UNLIKELY(aligned_offset > size_)) { in CheckIntraSectionIterate()
1284 if (UNLIKELY(offset != expected_offset)) { in CheckIntraIdSection()
1288 if (UNLIKELY(count != expected_size)) { in CheckIntraIdSection()
1301 if (UNLIKELY((offset < data_start) || (offset > data_end))) { in CheckIntraDataSection()
1336 } else if (UNLIKELY(offset > section_offset)) { in CheckIntraSection()
1344 if (UNLIKELY(section_count != 1)) { in CheckIntraSection()
1348 if (UNLIKELY(section_offset != 0)) { in CheckIntraSection()
1367 if (UNLIKELY(section_count != 1)) { in CheckIntraSection()
1371 if (UNLIKELY(section_offset != header_->map_off_)) { in CheckIntraSection()
1407 if (UNLIKELY(it == offset_to_type_map_.end())) { in CheckOffsetToTypeMap()
1411 if (UNLIKELY(it->second != type)) { in CheckOffsetToTypeMap()
1480 if (UNLIKELY(CompareModifiedUtf8ToModifiedUtf8AsUtf16CodePointValues(prev_str, str) >= 0)) { in CheckInterStringIdItem()
1496 if (UNLIKELY(!IsValidDescriptor(descriptor))) { in CheckInterTypeIdItem()
1504 if (UNLIKELY(prev_item->descriptor_idx_ >= item->descriptor_idx_)) { in CheckInterTypeIdItem()
1545 if (UNLIKELY(it.HasNext() || *shorty != '\0')) { in CheckInterProtoIdItem()
1553 if (UNLIKELY(prev->return_type_idx_ > item->return_type_idx_)) { in CheckInterProtoIdItem()
1566 if (UNLIKELY(curr_idx == DexFile::kDexNoIndex16)) { in CheckInterProtoIdItem()
1573 } else if (UNLIKELY(prev_idx > curr_idx)) { in CheckInterProtoIdItem()
1593 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || class_descriptor[0] != 'L')) { in CheckInterFieldIdItem()
1600 if (UNLIKELY(!IsValidDescriptor(type_descriptor) || type_descriptor[0] == 'V')) { in CheckInterFieldIdItem()
1607 if (UNLIKELY(!IsValidMemberName(descriptor))) { in CheckInterFieldIdItem()
1615 if (UNLIKELY(prev_item->class_idx_ > item->class_idx_)) { in CheckInterFieldIdItem()
1619 if (UNLIKELY(prev_item->name_idx_ > item->name_idx_)) { in CheckInterFieldIdItem()
1623 if (UNLIKELY(prev_item->type_idx_ >= item->type_idx_)) { in CheckInterFieldIdItem()
1640 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || (class_descriptor[0] != 'L' && in CheckInterMethodIdItem()
1648 if (UNLIKELY(!IsValidMemberName(descriptor))) { in CheckInterMethodIdItem()
1654 if (UNLIKELY(!CheckIndex(item->proto_idx_, dex_file_->NumProtoIds(), in CheckInterMethodIdItem()
1662 if (UNLIKELY(prev_item->class_idx_ > item->class_idx_)) { in CheckInterMethodIdItem()
1666 if (UNLIKELY(prev_item->name_idx_ > item->name_idx_)) { in CheckInterMethodIdItem()
1670 if (UNLIKELY(prev_item->proto_idx_ >= item->proto_idx_)) { in CheckInterMethodIdItem()
1693 if (UNLIKELY(!IsValidDescriptor(class_descriptor) || class_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1724 if (UNLIKELY(!IsValidDescriptor(superclass_descriptor) || superclass_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1738 if (UNLIKELY(!IsValidDescriptor(inf_descriptor) || inf_descriptor[0] != 'L')) { in CheckInterClassDefItem()
1752 if (UNLIKELY(idx1 == idx2)) { in CheckInterClassDefItem()
1768 if (UNLIKELY((data_definer != item->class_idx_) && (data_definer != DexFile::kDexNoIndex16))) { in CheckInterClassDefItem()
1782 if (UNLIKELY((annotations_definer != item->class_idx_) && in CheckInterClassDefItem()
1828 if (UNLIKELY(last_idx >= idx && i != 0)) { in CheckInterAnnotationSetItem()
1851 if (UNLIKELY(field->class_idx_ != defining_class)) { in CheckInterClassDataItem()
1862 if (UNLIKELY(method->class_idx_ != defining_class)) { in CheckInterClassDataItem()
1893 if (UNLIKELY(field->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()
1910 if (UNLIKELY(method->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()
1927 if (UNLIKELY(parameter_method->class_idx_ != defining_class)) { in CheckInterAnnotationsDirectoryItem()