Home | History | Annotate | Download | only in src

Lines Matching refs:exception

428     // Capture stack trace for a detailed exception message.
780 Handle<JSObject> exception = factory()->CopyJSObject(boilerplate);
781 DoThrow(*exception, NULL);
786 if (!error->IsJSObject()) return heap()->exception();
794 if (!stack_trace_limit->IsNumber()) return heap()->exception();
799 exception, factory()->undefined_value(), limit);
800 JSObject::SetHiddenProperty(exception,
803 return heap()->exception();
809 return heap()->exception();
850 Object* Isolate::Throw(Object* exception, MessageLocation* location) {
851 DoThrow(exception, location);
852 return heap()->exception();
856 Object* Isolate::ReThrow(Object* exception) {
858 bool catchable_by_javascript = is_catchable_by_javascript(exception);
864 // Set the exception being re-thrown.
865 set_pending_exception(exception);
866 return heap()->exception();
882 void Isolate::ScheduleThrow(Object* exception) {
883 // When scheduling a throw we first throw the exception to get the
885 Throw(exception);
914 // Re-throw the exception to avoid getting repeated error reporting.
979 // The exception has been externally caught if and only if there is
987 // Only report the exception if the external handler is verbose.
990 // Report the exception if it isn't caught by JavaScript code.
1018 void Isolate::DoThrow(Object* exception, MessageLocation* location) {
1022 Handle<Object> exception_handle(exception, this);
1024 // Determine reporting and whether the exception is caught externally.
1025 bool catchable_by_javascript = is_catchable_by_javascript(exception);
1037 // Notify debugger of exception.
1076 // If the exception argument is a custom object, turn it into a string
1077 // before throwing as uncaught exception. Note that the pending
1078 // exception object to be set later must not be turned into a string.
1084 STATIC_ASCII_VECTOR("exception"));
1100 // If the abort-on-uncaught-exception flag is specified, abort on any
1101 // exception not caught by JavaScript, even when an external handler is
1122 if (exception->IsString() && location->script()->name()->IsString()) {
1125 String::cast(exception)->ToCString().get(),
1157 // Save the message for reporting if the the exception remains uncaught.
1160 // Do not forget to clean catcher_ if currently thrown exception cannot
1184 // The exception has been externally caught if and only if there is
1190 // Note, that finally clause would rethrow an exception unless it's
1213 // Do nothing: if needed, the exception has been already propagated to
1264 // Do not reschedule the exception if this is the bottom call.
1274 // If the exception is externally caught, clear it if there are no
1286 // Clear the exception if needed.
1293 // Reschedule the exception.
2321 Handle<Object> exception;
2324 0, NULL, &exception);
2327 !exception.is_null() &&
2328 *exception == heap()->termination_exception()) {