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

Unified Diff: src/handles.h

Issue 2342443004: Only pass the outer scope info with ParseInfo (Closed)
Patch Set: rebase Created 4 years, 3 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/debug/debug-scopes.cc ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index a7eb31efca959bca1374f4c98c6e81d5262eb155..1e7fcfc1c0e0c688af59f4fe8e8cf0a3ad6bac52 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -206,6 +206,10 @@ class MaybeHandle final {
USE(a);
}
+ template <typename S>
+ V8_INLINE MaybeHandle(S* object, Isolate* isolate)
+ : MaybeHandle(handle(object, isolate)) {}
+
V8_INLINE void Assert() const { DCHECK_NOT_NULL(location_); }
V8_INLINE void Check() const { CHECK_NOT_NULL(location_); }
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698