Searched defs:exception (Results 1 - 19 of 19) sorted by relevance

/art/runtime/entrypoints/portable/
H A Dportable_throw_entrypoints.cc51 extern "C" void art_portable_throw_exception_from_code(mirror::Throwable* exception)
55 if (exception == NULL) {
56 ThrowNullPointerException(NULL, "throw with null exception");
58 self->SetException(throw_location, exception);
66 mirror::Throwable* exception = self->GetException(NULL); local
68 return exception;
76 mirror::Throwable* exception = self->GetException(&throw_location); local
77 // Check for special deoptimization exception.
78 if (UNLIKELY(reinterpret_cast<intptr_t>(exception) == -1)) {
81 mirror::Class* exception_type = exception
[all...]
/art/compiler/driver/
H A Dcompiler_driver_test.cc172 // Force non-virtual call to AbstractClass foo, will throw AbstractMethodError exception.
175 jthrowable exception = env_->ExceptionOccurred(); local
178 EXPECT_TRUE(env_->IsInstanceOf(exception, jlame));
H A Dcompiler_driver.cc739 // Resolve exception classes referenced by the loaded classes. The catch logic assumes
741 // Do this here so that exception classes appear to have been specified image classes.
1570 mirror::Throwable* exception = self->GetException(nullptr); local
1572 const char* descriptor = exception->GetClass()->GetDescriptor(&temp);
1589 LOG(FATAL) << "Unexpected exception " << exception->Dump();
1715 mirror::Throwable* exception = soa.Self()->GetException(nullptr); local
1716 VLOG(compiler) << "Exception during type resolution: " << exception->Dump();
1717 if (exception->GetClass()->DescriptorEquals("Ljava/lang/OutOfMemoryError;")) {
1929 mirror::Throwable* exception local
[all...]
/art/compiler/llvm/
H A Druntime_support_builder.cc147 Value* exception = EmitLoadFromThreadOffset(Thread::ExceptionOffset().Int32Value(), local
150 // If exception not null
151 return irb_.CreateIsNotNull(exception);
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc127 // Avoid running Java code for exception initialization.
186 // Throw the exception.
309 // In the case of checked exceptions that aren't declared, the exception must be wrapped by
311 mirror::Throwable* exception = soa.Self()->GetException(NULL); local
312 if (exception->IsCheckedException()) {
330 mirror::Class* exception_class = exception->GetClass();
/art/runtime/interpreter/
H A Dinterpreter_goto_table_impl.cc84 * - when an exception is thrown.
240 Throwable* exception = self->GetException(nullptr); local
241 DCHECK(exception != nullptr) << "No pending exception on MOVE_EXCEPTION instruction";
242 shadow_frame.SetVRegReference(inst->VRegA_11x(inst_data), exception);
343 // Return the pending exception.
618 Object* exception = shadow_frame.GetVRegReference(inst->VRegA_11x(inst_data)); local
619 if (UNLIKELY(exception == NULL)) {
620 ThrowNullPointerException(NULL, "throw with null exception");
621 } else if (do_assignability_check && !exception
[all...]
H A Dinterpreter_switch_impl.cc167 Throwable* exception = self->GetException(nullptr); local
168 DCHECK(exception != nullptr) << "No pending exception on MOVE_EXCEPTION instruction";
169 shadow_frame.SetVRegReference(inst->VRegA_11x(inst_data), exception);
258 // Return the pending exception.
532 Object* exception = shadow_frame.GetVRegReference(inst->VRegA_11x(inst_data)); local
533 if (UNLIKELY(exception == NULL)) {
534 ThrowNullPointerException(NULL, "throw with null exception");
535 } else if (do_assignability_check && !exception->GetClass()->IsThrowableClass()) {
541 exception
[all...]
/art/runtime/
H A Dquick_exception_handler.cc45 CatchBlockStackVisitor(Thread* self, Context* context, Handle<mirror::Throwable>* exception,
48 : StackVisitor(self, context), self_(self), exception_(exception),
66 // No next method? Check exception handler is set up for the unhandled exception handler
108 // The exception we're looking for the catch block of.
110 // The quick exception handler we're visiting for.
117 mirror::Throwable* exception,
121 mirror::String* msg = exception->GetDetailMessage();
123 self_->DumpStack(LOG(INFO) << "Delivering exception: " << PrettyTypeOf(exception)
116 FindCatch(const ThrowLocation& throw_location, mirror::Throwable* exception, bool is_exception_reported) argument
[all...]
H A Ddebugger.h61 result_tag(JDWP::JT_VOID), exception(0),
85 JDWP::ObjectId exception; member in struct:art::DebugInvokeReq
511 uint32_t catch_dex_pc, mirror::Throwable* exception)
H A Dclass_linker_test.cc52 mirror::Object* exception = self->GetException(NULL); local
56 EXPECT_TRUE(exception->InstanceOf(exception_class));
H A Djni_internal_test.cc57 jthrowable exception = env_->ExceptionOccurred(); local
58 EXPECT_NE(nullptr, exception);
60 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class));
278 // a pending exception.
341 // a pending exception
1546 // This checks how ExceptionDescribe handles call without exception.
1556 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); local
1557 ASSERT_TRUE(exception != nullptr);
1559 EXPECT_EQ(JNI_OK, env_->Throw(exception));
1563 EXPECT_TRUE(env_->IsSameObject(exception, thrown_exceptio
[all...]
H A Druntime.cc249 mirror::Throwable* exception = self->GetException(&throw_location); local
250 os << "Pending exception " << PrettyTypeOf(exception)
252 << exception->Dump();
H A Dcheck_jni.cc804 // Verify that, if an exception has been raised, the native code doesn't
808 mirror::Throwable* exception = self->GetException(&throw_location); local
809 std::string type(PrettyTypeOf(exception));
810 JniAbortF(function_name_, "JNI %s called with pending exception '%s' thrown in %s",
1198 // The JNI specification doesn't say it's okay to call FatalError with a pending exception,
1199 // but you're about to abort anyway, and it's quite likely that you have a pending exception,
H A Dthread.h131 // throwing the StackOverflow exception.
314 return tlsPtr_.exception != nullptr;
322 return tlsPtr_.exception;
332 tlsPtr_.exception = new_exception;
337 tlsPtr_.exception = nullptr;
342 // Find catch block and perform long jump to appropriate exception handle
377 // If 'msg' is NULL, no detail message is set. An exception must be pending, and will be
378 // used as the new exception's cause.
556 return ThreadOffsetFromTlsPtr<pointer_size>(OFFSETOF_MEMBER(tls_ptr_sized_values, exception));
714 // Returns the fake exception use
1039 mirror::Throwable* exception; variable
[all...]
H A Dthread.cc994 // assumption that there is no exception pending on entry. Thus, stash any pending exception.
1142 mirror::Throwable* exception = GetException(nullptr); local
1143 LOG(FATAL) << "No pending exception expected: " << exception->Dump();
1150 mirror::Throwable* exception = GetException(nullptr); local
1151 LOG(FATAL) << "Throwing new exception '" << msg << "' with unexpected pending exception: "
1152 << exception->Dump();
1260 // Get and clear the exception
1954 mirror::Throwable* exception = GetException(&throw_location); local
[all...]
H A Ddebugger.cc546 * onthrow=<exception-name>: connect to debugger when exception thrown
547 * onuncaught=y|n: connect to debugger when uncaught exception thrown
2905 // might get unrolled past it by an exception, and it's tricky
3769 *pExceptionId = req->exception;
3776 // We can be called while an exception is pending. We need
3814 mirror::Throwable* exception = soa.Self()->GetException(NULL); local
3816 pReq->exception = gRegistry->Add(exception);
3818 if (pReq->exception !
[all...]
H A Djni_internal.cc85 // exception; there the "L;" must be present ("[La/b/C;"). Historically we've
296 ScopedLocalRef<jthrowable> exception(
298 if (exception.get() == nullptr) {
303 soa.Self()->SetException(throw_location, soa.Decode<mirror::Throwable*>(exception.get()));
692 mirror::Throwable* exception = soa.Decode<mirror::Throwable*>(java_exception); local
693 if (exception == nullptr) {
697 soa.Self()->SetException(throw_location, exception);
718 // If we have no exception to describe, pass through.
740 ScopedLocalRef<jthrowable> exception(env,
742 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception
764 mirror::Object* exception = soa.Self()->GetException(nullptr); local
[all...]
/art/compiler/utils/arm64/
H A Dassembler_arm64.cc612 void Arm64Assembler::EmitExceptionPoll(Arm64Exception *exception) { argument
614 temps.Exclude(reg_x(exception->scratch_.AsCoreRegister()));
617 // Bind exception poll entry.
618 ___ Bind(exception->Entry());
619 if (exception->stack_adjust_ != 0) { // Fix up the frame.
620 DecreaseFrameSize(exception->stack_adjust_);
622 // Pass exception object as argument.
624 ___ Mov(reg_x(X0), reg_x(exception->scratch_.AsCoreRegister()));
/art/runtime/verifier/
H A Dmethod_verifier.cc470 // Flag instructions guarded by a "try" block and check exception handlers.
614 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "bad exception entry: startAddr=" << start
638 << "exception handler starts at bad address (" << dex_pc << ")";
642 // Ensure exception types are resolved so that they don't need resolution to be delivered,
643 // unresolved exception types will be ignored by exception delivery
1452 * unconditional branches, method returns, and exception throws.
1456 * throw an exception that is handled by an encompassing "try"
1478 * can throw an exception, we will copy/merge this into the "catch"
1481 * a type) to be visible to the exception handle
3004 RegType& exception = ResolveClassAndCheckAccess(iterator.GetHandlerTypeIndex()); local
[all...]

Completed in 7206 milliseconds