Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: src/isolate.h

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
===================================================================
--- src/isolate.h (revision 7031)
+++ src/isolate.h (working copy)
@@ -110,6 +110,15 @@
if (isolate->has_scheduled_exception()) \
return isolate->PromoteScheduledException()
+#define RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, value) \
+ if (call.is_null()) { \
+ ASSERT(isolate->has_pending_exception()); \
+ return value; \
+ }
+
+#define RETURN_IF_EMPTY_HANDLE(isolate, call) \
+ RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception())
+
#define ISOLATE_ADDRESS_LIST(C) \
C(handler_address) \
C(c_entry_fp_address) \
@@ -515,11 +524,11 @@
thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
}
- void setup_external_caught() {
- thread_local_top_.external_caught_exception_ =
- has_pending_exception() &&
- (thread_local_top_.catcher_ != NULL) &&
- (try_catch_handler() == thread_local_top_.catcher_);
+ bool IsExternallyCaught();
+
+ bool is_catchable_by_javascript(MaybeObject* exception) {
+ return (exception != Failure::OutOfMemoryException()) &&
+ (exception != heap()->termination_exception());
}
// JS execution stack (see frames.h).
@@ -619,7 +628,7 @@
const char* message);
// Checks if exception should be reported and finds out if it's
// caught externally.
- bool ShouldReportException(bool* is_caught_externally,
+ bool ShouldReportException(bool* can_be_caught_externally,
bool catchable_by_javascript);
// Attempts to compute the current source location, storing the
« no previous file with comments | « src/ic-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698