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

Unified Diff: src/isolate.h

Issue 1397853005: [es6] Partially implement Reflect.preventExtensions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 8f4915cefd55bbab5f0f19b70a41ad7a08a8e734..04c00ba0c873edf4a0b4c91b8e6fefb813be67b8 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -164,6 +164,19 @@ typedef ZoneList<Handle<Object> > ZoneObjectList;
RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())
+// Macros for Maybe.
+
+#define MAYBE_ASSIGN_RETURN_ON_EXCEPTION(isolate, T, dst, call) \
+ do { \
+ Maybe<T> result_of_the_call = (call); \
+ if (result_of_the_call.IsNothing()) { \
+ DCHECK((isolate)->has_pending_exception()); \
+ return isolate->heap()->exception(); \
+ } \
+ (dst) = result_of_the_call.FromJust(); \
+ } while (false)
+
+
#define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \
C(Handler, handler) \
C(CEntryFP, c_entry_fp) \
« src/builtins.cc ('K') | « src/builtins.cc ('k') | test/mjsunit/harmony/reflect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698