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

Unified Diff: src/isolate.h

Issue 2415993003: Remove RETURN_RESULT macro (Closed)
Patch Set: Remove RETURN_RESULT macro Created 4 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
« no previous file with comments | « src/builtins/builtins-regexp.cc ('k') | src/messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index d4b97b3cb36334eceff242bc509f8fd0b417e404..c51045109bfa5b72d3f2403df6bca45490f337a9 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -117,16 +117,6 @@ class Interpreter;
#define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, T) \
RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>())
-#define RETURN_RESULT(isolate, call, T) \
- do { \
- Handle<T> __result__; \
- if (!(call).ToHandle(&__result__)) { \
- DCHECK((isolate)->has_pending_exception()); \
- return MaybeHandle<T>(); \
- } \
- return __result__; \
- } while (false)
-
#define RETURN_RESULT_OR_FAILURE(isolate, call) \
do { \
Handle<Object> __result__; \
« no previous file with comments | « src/builtins/builtins-regexp.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698