Lines Matching defs:exception

1567   Handle<JSObject> exception;
1569 this, exception,
1572 JSObject::AddProperty(this, exception, factory()->wasm_uncatchable_symbol(),
1575 Throw(*exception);
1584 return ReadOnlyRoots(heap()).exception();
1587 Object Isolate::ThrowAt(Handle<JSObject> exception, MessageLocation* location) {
1589 Object::SetProperty(this, exception, key_start_pos,
1596 Object::SetProperty(this, exception, key_end_pos,
1603 Object::SetProperty(this, exception, key_script, location->script(),
1608 return ThrowInternal(*exception, location);
1656 void ReportBootstrappingException(Handle<Object> exception,
1667 if (exception->IsString() && location->script()->name().IsString()) {
1670 String::cast(*exception).ToCString().get(),
1678 } else if (exception->IsString()) {
1680 String::cast(*exception).ToCString().get());
1714 Handle<Object> exception, MessageLocation* location) {
1715 Handle<JSMessageObject> message_obj = CreateMessage(exception, location);
1717 // If the abort-on-uncaught-exception flag is specified, and if the
1718 // embedder didn't specify a custom uncaught exception callback,
1749 Handle<Object> exception(raw_exception, this);
1774 // Make sure to update the raw exception pointer in case it moved.
1775 raw_exception = *exception;
1786 // Determine whether a message needs to be created for the given exception
1801 // Notify debugger of exception.
1803 base::Optional<Object> maybe_exception = debug()->OnThrow(exception);
1820 ReportBootstrappingException(exception, location);
1822 Handle<Object> message_obj = CreateMessageOrAbort(exception, location);
1827 // Set the exception being thrown.
1828 set_pending_exception(*exception);
1829 return ReadOnlyRoots(heap()).exception();
1832 Object Isolate::ReThrow(Object exception) {
1835 // Set the exception being re-thrown.
1836 set_pending_exception(exception);
1837 return ReadOnlyRoots(heap()).exception();
1840 Object Isolate::ReThrow(Object exception, Object message) {
1845 return ReThrow(exception);
1883 Object exception = pending_exception();
1899 // Return and clear pending exception. The contract is that:
1900 // (1) the pending exception is stored in one place (no duplication), and
1903 // or to Execution::CallWasm), the returned exception will be sent
1906 return exception;
1911 bool catchable_by_js = is_catchable_by_javascript(exception);
1914 // uncatchable terminate exception, we need to clear the array join stack to
1970 if (!is_catchable_by_wasm(exception)) break;
2084 // position of the exception handler. The special builtin below will
2134 js_frame->SetException(exception);
2145 // All other types can not handle exception.
2168 // exception prediction, and we need to use the corresponding handler
2221 // Search for an exception handler by performing a full walk over the stack.
2229 // The exception has been externally caught if and only if there is an
2269 // All other types can not handle exception.
2283 void Isolate::ScheduleThrow(Object exception) {
2284 // When scheduling a throw we first throw the exception to get the
2286 Throw(exception);
2331 // Re-throw the exception to avoid getting repeated error reporting.
2380 Handle<Object> exception) {
2381 if (!exception->IsJSObject()) return false;
2385 this, Handle<JSObject>::cast(exception), start_pos_symbol);
2391 this, Handle<JSObject>::cast(exception), end_pos_symbol);
2397 this, Handle<JSObject>::cast(exception), script_symbol);
2406 Handle<Object> exception) {
2407 if (!exception->IsJSReceiver()) {
2411 GetSimpleStackTrace(Handle<JSReceiver>::cast(exception));
2423 Handle<Object> exception) {
2424 if (!exception->IsJSReceiver()) return false;
2427 GetDetailedStackTrace(Handle<JSReceiver>::cast(exception));
2439 Handle<JSMessageObject> Isolate::CreateMessage(Handle<Object> exception,
2443 if (exception->IsJSError()) {
2445 // If the lookup fails, the exception is probably not a valid Error
2449 GetDetailedStackTrace(Handle<JSObject>::cast(exception));
2460 (ComputeLocationFromException(&computed_location, exception) ||
2461 ComputeLocationFromSimpleStackTrace(&computed_location, exception) ||
2467 this, MessageTemplate::kUncaughtException, location, exception,
2472 Handle<Object> exception) {
2474 if (exception->IsJSError()) {
2476 GetDetailedStackTrace(Handle<JSObject>::cast(exception));
2481 if (ComputeLocationFromException(&computed_location, exception) ||
2482 ComputeLocationFromDetailedStackTrace(&computed_location, exception)) {
2487 this, MessageTemplate::kPlaceholderOnly, location, exception,
2492 Object exception) {
2493 DCHECK_NE(ReadOnlyRoots(heap()).the_hole_value(), exception);
2500 if (js_handler == kNullAddress || !is_catchable_by_javascript(exception)) {
2511 // The exception has been externally caught if and only if there is an
2514 // Note, that finally clauses would re-throw an exception unless it's aborted
2536 // The embedder might run script in response to an exception.
2542 // Try to propagate the exception to an external v8::TryCatch handler. If
2544 // the pending message if the exception is re-thrown.
2553 // For uncatchable exceptions we do nothing. If needed, the exception and the
2574 Handle<Object> exception(exception_obj, this);
2576 // Clear the exception and restore it afterwards, otherwise
2580 set_pending_exception(*exception);
2603 // If the exception is externally caught, clear it if there are no
2615 // Clear the exception if needed.
2622 // Reschedule the exception.
2751 // await, the function which has this exception event has not yet
3610 Object exception = pending_exception();
3624 if (!is_catchable_by_javascript(exception)) {
3632 handler->exception_ = reinterpret_cast<void*>(exception.ptr());
4644 Handle<Object> exception) {
4651 isolate, resolver->Reject(api_context, v8::Utils::ToLocal(exception)),
4668 Handle<Object> exception =
4670 return NewRejectedPromise(this, api_context, exception);
4676 Handle<Object> exception(pending_exception(), this);
4678 return NewRejectedPromise(this, api_context, exception);
4686 Handle<Object> exception(pending_exception(), this);
4688 return NewRejectedPromise(this, api_context, exception);
4870 Handle<Object> exception =
4872 Throw(*exception);
5092 // builtins-microtask-queue-gen.cc) is aborted via a termination exception.