Home
last modified time | relevance | path

Searched refs:throw_location (Results 1 – 25 of 39) sorted by relevance

12

/art/runtime/
Dcommon_throws.cc46 static void ThrowException(const ThrowLocation* throw_location, const char* exception_descriptor, in ThrowException() argument
59 if (throw_location == NULL) { in ThrowException()
63 self->ThrowNewException(*throw_location, exception_descriptor, msg.str().c_str()); in ThrowException()
67 static void ThrowWrappedException(const ThrowLocation* throw_location, in ThrowWrappedException() argument
81 if (throw_location == NULL) { in ThrowWrappedException()
85 self->ThrowNewWrappedException(*throw_location, exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
128 void ThrowClassCastException(const ThrowLocation* throw_location, const char* msg) { in ThrowClassCastException() argument
129 ThrowException(throw_location, "Ljava/lang/ClassCastException;", NULL, msg); in ThrowClassCastException()
200 void ThrowIllegalAccessException(const ThrowLocation* throw_location, const char* msg) { in ThrowIllegalAccessException() argument
201 ThrowException(throw_location, "Ljava/lang/IllegalAccessException;", NULL, msg); in ThrowIllegalAccessException()
[all …]
Dcommon_throws.h63 void ThrowClassCastException(const ThrowLocation* throw_location, const char* msg)
97 void ThrowIllegalAccessException(const ThrowLocation* throw_location, const char* msg)
102 void ThrowIllegalArgumentException(const ThrowLocation* throw_location, const char* msg)
164 void ThrowNullPointerExceptionForFieldAccess(const ThrowLocation& throw_location,
169 void ThrowNullPointerExceptionForMethodAccess(const ThrowLocation& throw_location,
174 void ThrowNullPointerExceptionForMethodAccess(const ThrowLocation& throw_location,
179 void ThrowNullPointerExceptionFromDexPC(const ThrowLocation& throw_location)
182 void ThrowNullPointerException(const ThrowLocation* throw_location, const char* msg)
Dreflection-inl.h30 inline bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbox_for_result, in ConvertPrimitiveValue() argument
91 ThrowIllegalArgumentException(throw_location, in ConvertPrimitiveValue()
96 ThrowClassCastException(throw_location, in ConvertPrimitiveValue()
Dthread.h317 mirror::Throwable* GetException(ThrowLocation* throw_location) const in GetException() argument
319 if (throw_location != nullptr) { in GetException()
320 *throw_location = tlsPtr_.throw_location; in GetException()
328 void SetException(const ThrowLocation& throw_location, mirror::Throwable* new_exception) in SetException() argument
333 tlsPtr_.throw_location = throw_location; in SetException()
338 tlsPtr_.throw_location.Clear(); in ClearException()
373 void ThrowNewException(const ThrowLocation& throw_location,
379 void ThrowNewWrappedException(const ThrowLocation& throw_location,
384 void ThrowNewExceptionF(const ThrowLocation& throw_location,
389 void ThrowNewExceptionV(const ThrowLocation& throw_location,
[all …]
Dreflection.h41 bool UnboxPrimitiveForResult(const ThrowLocation& throw_location, mirror::Object* o,
45 ALWAYS_INLINE bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbox_for_result,
Dreflection.cc693 static bool UnboxPrimitive(const ThrowLocation* throw_location, mirror::Object* o, in UnboxPrimitive() argument
701 ThrowIllegalArgumentException(throw_location, in UnboxPrimitive()
707 ThrowClassCastException(throw_location, in UnboxPrimitive()
718 ThrowIllegalArgumentException(throw_location, in UnboxPrimitive()
725 ThrowIllegalArgumentException(throw_location, in UnboxPrimitive()
730 ThrowNullPointerException(throw_location, in UnboxPrimitive()
768 ThrowIllegalArgumentException(throw_location, in UnboxPrimitive()
775 return ConvertPrimitiveValue(throw_location, unbox_for_result, in UnboxPrimitive()
786 bool UnboxPrimitiveForResult(const ThrowLocation& throw_location, mirror::Object* o, in UnboxPrimitiveForResult() argument
788 return UnboxPrimitive(&throw_location, o, dst_class, nullptr, unboxed_value); in UnboxPrimitiveForResult()
Dthread.cc1637 void Thread::ThrowNewExceptionF(const ThrowLocation& throw_location, in ThrowNewExceptionF() argument
1641 ThrowNewExceptionV(throw_location, exception_class_descriptor, in ThrowNewExceptionF()
1646 void Thread::ThrowNewExceptionV(const ThrowLocation& throw_location, in ThrowNewExceptionV() argument
1651 ThrowNewException(throw_location, exception_class_descriptor, msg.c_str()); in ThrowNewExceptionV()
1654 void Thread::ThrowNewException(const ThrowLocation& throw_location, const char* exception_class_des… in ThrowNewException() argument
1658 ThrowNewWrappedException(throw_location, exception_class_descriptor, msg); in ThrowNewException()
1661 void Thread::ThrowNewWrappedException(const ThrowLocation& throw_location, in ThrowNewWrappedException() argument
1668 Handle<mirror::Object> saved_throw_this(hs.NewHandle(throw_location.GetThis())); in ThrowNewWrappedException()
1669 Handle<mirror::ArtMethod> saved_throw_method(hs.NewHandle(throw_location.GetMethod())); in ThrowNewWrappedException()
1701 throw_location.GetDexPc()); in ThrowNewWrappedException()
[all …]
Dquick_exception_handler.h45 void FindCatch(const ThrowLocation& throw_location, mirror::Throwable* exception,
Dmonitor.cc302 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in ThrowIllegalMonitorStateExceptionF() local
303 self->ThrowNewExceptionV(throw_location, "Ljava/lang/IllegalMonitorStateException;", fmt, args); in ThrowIllegalMonitorStateExceptionF()
453 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in Wait() local
454 self->ThrowNewExceptionF(throw_location, "Ljava/lang/IllegalArgumentException;", in Wait()
565 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in Wait() local
566 self->ThrowNewException(throw_location, "Ljava/lang/InterruptedException;", NULL); in Wait()
Dquick_exception_handler.cc116 void QuickExceptionHandler::FindCatch(const ThrowLocation& throw_location, in FindCatch() argument
155 instrumentation->ExceptionCaughtEvent(self_, throw_location, handler_method_, handler_dex_pc_, in FindCatch()
/art/runtime/entrypoints/portable/
Dportable_throw_entrypoints.cc43 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in art_portable_throw_null_pointer_exception_from_code() local
44 ThrowNullPointerExceptionFromDexPC(throw_location); in art_portable_throw_null_pointer_exception_from_code()
54 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in art_portable_throw_exception_from_code() local
58 self->SetException(throw_location, exception); in art_portable_throw_exception_from_code()
75 ThrowLocation throw_location; in art_portable_find_catch_block_from_code() local
76 mirror::Throwable* exception = self->GetException(&throw_location); in art_portable_find_catch_block_from_code()
117 self, throw_location, current_method, catch_dex_pc, exception); in art_portable_find_catch_block_from_code()
Dportable_fillarray_entrypoints.cc40 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in art_portable_fill_array_data_from_code() local
41 self->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayIndexOutOfBoundsException;", in art_portable_fill_array_data_from_code()
/art/runtime/entrypoints/quick/
Dquick_lock_entrypoints.cc29 ThrowLocation throw_location(self->GetCurrentLocationForThrow()); in artLockObjectFromCode() local
30 ThrowNullPointerException(&throw_location, in artLockObjectFromCode()
52 ThrowLocation throw_location(self->GetCurrentLocationForThrow()); in artUnlockObjectFromCode() local
53 ThrowNullPointerException(&throw_location, in artUnlockObjectFromCode()
Dquick_throw_entrypoints.cc46 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artDeliverExceptionFromCode() local
48 self->ThrowNewException(throw_location, "Ljava/lang/NullPointerException;", in artDeliverExceptionFromCode()
51 self->SetException(throw_location, exception); in artDeliverExceptionFromCode()
62 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artThrowNullPointerExceptionFromCode() local
63 ThrowNullPointerExceptionFromDexPC(throw_location); in artThrowNullPointerExceptionFromCode()
Dquick_field_entrypoints.cc95 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artGet32InstanceFromCode() local
96 ThrowNullPointerExceptionForFieldAccess(throw_location, field, true); in artGet32InstanceFromCode()
118 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artGet64InstanceFromCode() local
119 ThrowNullPointerExceptionForFieldAccess(throw_location, field, true); in artGet64InstanceFromCode()
142 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artGetObjInstanceFromCode() local
143 ThrowNullPointerExceptionForFieldAccess(throw_location, field, true); in artGetObjInstanceFromCode()
237 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artSet32InstanceFromCode() local
238 ThrowNullPointerExceptionForFieldAccess(throw_location, field, false); in artSet32InstanceFromCode()
268 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artSet64InstanceFromCode() local
269 ThrowNullPointerExceptionForFieldAccess(throw_location, field, false); in artSet64InstanceFromCode()
[all …]
Dquick_fillarray_entrypoints.cc52 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in artHandleFillArrayDataFromCode() local
53 self->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayIndexOutOfBoundsException;", in artHandleFillArrayDataFromCode()
/art/runtime/entrypoints/
Dentrypoint_utils.cc59 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in CheckFilledNewArrayAlloc() local
60 DCHECK(throw_location.GetMethod() == referrer); in CheckFilledNewArrayAlloc()
62 throw_location, "Ljava/lang/InternalError;", in CheckFilledNewArrayAlloc()
187 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in ThrowStackOverflowError() local
188 self->SetException(throw_location, in ThrowStackOverflowError()
300 ThrowLocation throw_location(rcvr, proxy_method, -1); in InvokeProxyInvocationHandler() local
302 if (!UnboxPrimitiveForResult(throw_location, result_ref, result_type, &result_unboxed)) { in InvokeProxyInvocationHandler()
337 ThrowLocation throw_location(rcvr, proxy_method, -1); in InvokeProxyInvocationHandler() local
338 soa.Self()->ThrowNewWrappedException(throw_location, in InvokeProxyInvocationHandler()
Dentrypoint_utils-inl.h56 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in CheckObjectAlloc() local
57 self->ThrowNewException(throw_location, "Ljava/lang/InstantiationError;", in CheckObjectAlloc()
298 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in FindFieldFromCode() local
299 DCHECK(throw_location.GetMethod() == referrer); in FindFieldFromCode()
300 self->ThrowNewExceptionF(throw_location, "Ljava/lang/NoSuchFieldError;", in FindFieldFromCode()
371 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in FindMethodFromCode() local
372 DCHECK_EQ(*referrer, throw_location.GetMethod()); in FindMethodFromCode()
373 ThrowNullPointerExceptionForMethodAccess(throw_location, method_idx, type); in FindMethodFromCode()
/art/runtime/native/
Djava_lang_System.cc40 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in ThrowArrayStoreException_NotAnArray() local
41 self->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayStoreException;", in ThrowArrayStoreException_NotAnArray()
79 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in System_arraycopy() local
80 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayIndexOutOfBoundsException;", in System_arraycopy()
133 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in System_arraycopy() local
134 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayStoreException;", in System_arraycopy()
Djava_lang_reflect_Constructor.cc43 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in Constructor_newInstance() local
44 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/InstantiationException;", in Constructor_newInstance()
Djava_lang_Class.cc56 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in Class_classForName() local
57 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ClassNotFoundException;", in Class_classForName()
Ddalvik_system_VMDebug.cc94 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in VMDebug_startMethodTracingFd() local
95 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/RuntimeException;", in VMDebug_startMethodTracingFd()
149 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow(); in ThrowUnsupportedOperationException() local
150 soa.Self()->ThrowNewException(throw_location, "Ljava/lang/UnsupportedOperationException;", NULL); in ThrowUnsupportedOperationException()
/art/runtime/mirror/
Dstring-inl.h63 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in CharAt() local
64 self->ThrowNewExceptionF(throw_location, "Ljava/lang/StringIndexOutOfBoundsException;", in CharAt()
Dart_method.cc218 ThrowLocation throw_location; in FindCatchBlock() local
220 Handle<mirror::Throwable> exception(hs.NewHandle(self->GetException(&throw_location))); in FindCatchBlock()
257 self->SetException(throw_location, exception.Get()); in FindCatchBlock()
Dobject_array-inl.h232 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); in AssignableCheckingMemcpy() local
234 self->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayStoreException;", in AssignableCheckingMemcpy()

12