Home
last modified time | relevance | path

Searched refs:UNLIKELY (Results 1 – 25 of 129) sorted by relevance

123456

/art/runtime/
Ddex_file_verifier.cc70 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()
[all …]
Dindirect_reference_table-inl.h32 if (UNLIKELY(iref == nullptr)) { in GetChecked()
36 if (UNLIKELY(GetIndirectRefKind(iref) == kHandleScopeOrInvalid)) { in GetChecked()
43 if (UNLIKELY(idx >= topIndex)) { in GetChecked()
49 if (UNLIKELY(table_[idx].GetReference()->IsNull())) { in GetChecked()
54 if (UNLIKELY(!CheckEntry("use", iref, idx))) { in GetChecked()
63 if (UNLIKELY(checkRef != iref)) { in CheckEntry()
Dindenter.h34 if (UNLIKELY(c == std::char_traits<char>::eof())) { in overflow()
41 if (UNLIKELY(r != text_)) { in overflow()
50 if (UNLIKELY(r != c)) { in overflow()
Dverify_object-inl.h42 if (UNLIKELY(failed)) { in VerifyObject()
50 if (UNLIKELY(c == nullptr)) { in VerifyClassClass()
Dmethod_helper.cc40 if (UNLIKELY(GetReturnType() != other->GetReturnType())) { in HasSameSignatureWithDifferentClassLoaders()
47 } else if (UNLIKELY(other_types == nullptr)) { in HasSameSignatureWithDifferentClassLoaders()
51 if (UNLIKELY(num_types != other_types->Size())) { in HasSameSignatureWithDifferentClassLoaders()
58 if (UNLIKELY(param_type != other_param_type)) { in HasSameSignatureWithDifferentClassLoaders()
Doat_file.cc257 if (UNLIKELY(dex_file_location_size == 0U)) { in Setup()
263 if (UNLIKELY(oat > End())) { in Setup()
271 if (UNLIKELY(oat > End())) { in Setup()
281 if (UNLIKELY(oat > End())) { in Setup()
289 if (UNLIKELY(dex_file_offset == 0U)) { in Setup()
294 if (UNLIKELY(dex_file_offset > Size())) { in Setup()
301 if (UNLIKELY(oat > End())) { in Setup()
309 if (UNLIKELY(!DexFile::IsMagicValid(dex_file_pointer))) { in Setup()
315 if (UNLIKELY(!DexFile::IsVersionValid(dex_file_pointer))) { in Setup()
325 if (UNLIKELY(oat > End())) { in Setup()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h44 if (UNLIKELY(klass == NULL)) { in CheckObjectAlloc()
55 if (UNLIKELY(!klass->IsInstantiable())) { in CheckObjectAlloc()
63 if (UNLIKELY(!referrer->CanAccess(klass))) { in CheckObjectAlloc()
69 if (UNLIKELY(!klass->IsInitialized())) { in CheckObjectAlloc()
96 if (UNLIKELY(!klass->IsInitialized())) { in CheckClassInitializedForObjectAlloc()
129 if (UNLIKELY(slow_path)) { in AllocObjectFromCode()
149 if (UNLIKELY(slow_path)) { in AllocObjectFromCodeResolved()
180 if (UNLIKELY(component_count < 0)) { in CheckArrayAlloc()
186 if (UNLIKELY(klass == nullptr)) { // Not in dex cache so try to resolve in CheckArrayAlloc()
197 if (UNLIKELY(!referrer->CanAccess(klass))) { in CheckArrayAlloc()
[all …]
/art/runtime/gc/
Dheap-inl.h52 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { in AllocObjectWithAllocator()
90 if (UNLIKELY(obj == nullptr)) { in AllocObjectWithAllocator()
114 if (collector::SemiSpace::kUseRememberedSet && UNLIKELY(allocator == kAllocatorTypeNonMoving)) { in AllocObjectWithAllocator()
174 if (UNLIKELY(!self->PushOnThreadLocalAllocationStack(*obj))) { in PushOnAllocationStack()
177 } else if (UNLIKELY(!allocation_stack_->AtomicPushBack(*obj))) { in PushOnAllocationStack()
199 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) { in TryToAllocate()
215 if (kInstrumented && UNLIKELY(running_on_valgrind_)) { in TryToAllocate()
225 if (kInstrumented && UNLIKELY(running_on_valgrind_)) { in TryToAllocate()
248 if (UNLIKELY(self->TlabSize() < alloc_size)) { in TryToAllocate()
250 if (UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, new_tlab_size))) { in TryToAllocate()
[all …]
/art/runtime/mirror/
Darray.cc53 if (UNLIKELY(new_array.Get() == nullptr)) { in RecursiveCreateMultiArray()
64 if (UNLIKELY(sub_array == nullptr)) { in RecursiveCreateMultiArray()
87 if (UNLIKELY(dimension < 0)) { in CreateMultiArray()
99 if (UNLIKELY(array_class.Get() == nullptr)) { in CreateMultiArray()
106 if (UNLIKELY(array_class.Get() == nullptr)) { in CreateMultiArray()
113 if (UNLIKELY(new_array == nullptr)) { in CreateMultiArray()
Dart_field-inl.h68 if (UNLIKELY(IsVolatile())) { in Get32()
78 if (UNLIKELY(IsVolatile())) { in Set32()
88 if (UNLIKELY(IsVolatile())) { in Get64()
98 if (UNLIKELY(IsVolatile())) { in Set64()
108 if (UNLIKELY(IsVolatile())) { in GetObj()
118 if (UNLIKELY(IsVolatile())) { in SetObj()
246 if (UNLIKELY(GetDeclaringClass()->IsProxyClass())) { in GetName()
257 if (UNLIKELY(GetDeclaringClass()->IsProxyClass())) { in GetTypeDescriptor()
Dart_method-inl.h239 if (UNLIKELY(entry_point == GetQuickToInterpreterBridge()) || in GetQuickOatEntryPoint()
240 UNLIKELY(entry_point == runtime->GetClassLinker()->GetQuickGenericJniTrampoline())) { in GetQuickOatEntryPoint()
263 if (UNLIKELY(offset == 0u)) { in GetMappingTable()
282 if (UNLIKELY(offset == 0u)) { in GetVmapTable()
301 if (UNLIKELY(offset == 0u)) { in GetNativeGcMap()
361 if (UNLIKELY(IsPortableCompiled())) { in GetQuickFrameInfo()
370 if (UNLIKELY(IsAbstract()) || UNLIKELY(IsProxyMethod() && !IsDirect())) { in GetQuickFrameInfo()
373 if (UNLIKELY(IsRuntimeMethod())) { in GetQuickFrameInfo()
384 if (UNLIKELY(entry_point == runtime->GetClassLinker()->GetQuickGenericJniTrampoline())) { in GetQuickFrameInfo()
419 if (UNLIKELY(dex_method_idx == DexFile::kDexNoIndex)) { in GetDeclaringClassDescriptor()
Dstring-inl.h61 if (UNLIKELY(static_cast<uint32_t>(index) >= static_cast<uint32_t>(count_))) { in CharAt()
73 if (UNLIKELY(result == 0)) { in GetHashCode()
/art/runtime/interpreter/
Dinterpreter_common.h115 if (UNLIKELY(method == nullptr)) { in DoInvoke()
119 } else if (UNLIKELY(method->IsAbstract())) { in DoInvoke()
136 if (UNLIKELY(receiver == nullptr)) { in DoInvokeVirtualQuick()
145 if (UNLIKELY(method == nullptr)) { in DoInvokeVirtualQuick()
149 } else if (UNLIKELY(method->IsAbstract())) { in DoInvokeVirtualQuick()
191 if (UNLIKELY(!java_lang_string_class->IsInitialized())) { in ResolveString()
195 if (UNLIKELY(!class_linker->EnsureInitialized(h_class, true, true))) { in ResolveString()
209 if (UNLIKELY(divisor == 0)) { in DoIntDivide()
213 if (UNLIKELY(dividend == kMinInt && divisor == -1)) { in DoIntDivide()
227 if (UNLIKELY(divisor == 0)) { in DoIntRemainder()
[all …]
Dinterpreter_switch_impl.cc25 if (UNLIKELY(self->TestAllFlags())) { \
41 if (UNLIKELY(_is_exception_pending)) { \
52 if (UNLIKELY(notified_method_entry_event)) { \
54 } else if (UNLIKELY(instrumentation->HasDexPcListeners())) { \
64 if (UNLIKELY(!shadow_frame.HasReferenceArray())) { in ExecuteSwitchImpl()
77 if (UNLIKELY(instrumentation->HasMethodEntryListeners())) { in ExecuteSwitchImpl()
182 if (UNLIKELY(self->TestAllFlags())) { in ExecuteSwitchImpl()
185 if (UNLIKELY(instrumentation->HasMethodExitListeners())) { in ExecuteSwitchImpl()
189 } else if (UNLIKELY(instrumentation->HasDexPcListeners())) { in ExecuteSwitchImpl()
198 if (UNLIKELY(self->TestAllFlags())) { in ExecuteSwitchImpl()
[all …]
Dinterpreter_goto_table_impl.cc47 if (UNLIKELY(_is_exception_pending)) { \
138 if (UNLIKELY(!shadow_frame.HasReferenceArray())) { in ExecuteGotoImpl()
155 if (UNLIKELY(instrumentation->HasMethodEntryListeners())) { in ExecuteGotoImpl()
256 if (UNLIKELY(self->TestAllFlags())) { in ExecuteGotoImpl()
260 if (UNLIKELY(instrumentation->HasMethodExitListeners())) { in ExecuteGotoImpl()
264 } else if (UNLIKELY(instrumentation->HasDexPcListeners())) { in ExecuteGotoImpl()
275 if (UNLIKELY(self->TestAllFlags())) { in ExecuteGotoImpl()
279 if (UNLIKELY(instrumentation->HasMethodExitListeners())) { in ExecuteGotoImpl()
283 } else if (UNLIKELY(instrumentation->HasDexPcListeners())) { in ExecuteGotoImpl()
295 if (UNLIKELY(self->TestAllFlags())) { in ExecuteGotoImpl()
[all …]
/art/runtime/native/
Djava_lang_System.cc52 if (UNLIKELY(javaSrc == nullptr)) { in System_arraycopy()
56 if (UNLIKELY(javaDst == nullptr)) { in System_arraycopy()
63 if (UNLIKELY(!srcObject->IsArrayInstance())) { in System_arraycopy()
68 if (UNLIKELY(!dstObject->IsArrayInstance())) { in System_arraycopy()
76 if (UNLIKELY(srcPos < 0) || UNLIKELY(dstPos < 0) || UNLIKELY(count < 0) || in System_arraycopy()
77 UNLIKELY(srcPos > srcArray->GetLength() - count) || in System_arraycopy()
78 UNLIKELY(dstPos > dstArray->GetLength() - count)) { in System_arraycopy()
129 if (UNLIKELY((dstComponentPrimitiveType != Primitive::kPrimNot) || in System_arraycopy()
220 if (UNLIKELY(javaObject == nullptr)) { in System_identityHashCode()
/art/runtime/gc/collector/
Dmark_sweep-inl.h39 if (UNLIKELY(klass == mirror::Class::GetJavaLangClass())) { in ScanObjectVisit()
41 } else if (UNLIKELY(klass->IsArrayClass<kVerifyNone>())) { in ScanObjectVisit()
/art/compiler/driver/
Dcompiler_driver-inl.h53 if (UNLIKELY(referrer_class == nullptr)) { in ResolveCompilingMethodsClass()
69 if (UNLIKELY(resolved_field == nullptr)) { in ResolveField()
74 if (UNLIKELY(resolved_field->IsStatic() != is_static)) { in ResolveField()
177 if (UNLIKELY(resolved_method == nullptr)) { in ResolveMethod()
182 if (UNLIKELY(resolved_method->CheckIncompatibleClassChange(invoke_type))) { in ResolveMethod()
216 if (UNLIKELY(referrer_class == nullptr)) { in IsFastInvoke()
220 if (UNLIKELY(!referrer_class->CanAccessResolvedMethod(methods_class, resolved_method, in IsFastInvoke()
297 if (UNLIKELY(*invoke_type == kSuper)) { in IsFastInvoke()
/art/runtime/entrypoints/quick/
Dquick_fillarray_entrypoints.cc46 if (UNLIKELY(array == NULL)) { in artHandleFillArrayDataFromCode()
51 if (UNLIKELY(static_cast<int32_t>(payload->element_count) > array->GetLength())) { in artHandleFillArrayDataFromCode()
Dquick_lock_entrypoints.cc28 if (UNLIKELY(obj == NULL)) { in artLockObjectFromCode()
51 if (UNLIKELY(obj == NULL)) { in artUnlockObjectFromCode()
Dquick_jni_entrypoints.cc55 } else if (UNLIKELY(self->TestAllFlags())) { in GoToRunnable()
90 if (UNLIKELY(self->GetJniEnv()->check_jni)) { in JniMethodEndWithReference()
108 if (UNLIKELY(self->GetJniEnv()->check_jni)) { in JniMethodEndWithReferenceSynchronized()
/art/runtime/entrypoints/portable/
Dportable_fillarray_entrypoints.cc33 if (UNLIKELY(array == NULL)) { in art_portable_fill_array_data_from_code()
38 if (UNLIKELY(static_cast<int32_t>(payload->element_count) > array->GetLength())) { in art_portable_fill_array_data_from_code()
Dportable_cast_entrypoints.cc36 if (UNLIKELY(!dest_type->IsAssignableFrom(src_type))) { in art_portable_check_cast_from_code()
52 if (UNLIKELY(!component_type->IsAssignableFrom(element_class))) { in art_portable_check_put_array_element_from_code()
Dportable_invoke_entrypoints.cc29 if (UNLIKELY(method == NULL)) { in FindMethodHelper()
34 if (UNLIKELY(method == NULL)) { in FindMethodHelper()
47 if (UNLIKELY(code == NULL)) { in FindMethodHelper()
/art/runtime/entrypoints/interpreter/
Dinterpreter_entrypoints.cc35 if (UNLIKELY(!declaringClass->IsInitialized())) { in artInterpreterToCompiledCodeBridge()
39 if (UNLIKELY(!Runtime::Current()->GetClassLinker()->EnsureInitialized(h_class, true, true))) { in artInterpreterToCompiledCodeBridge()

123456