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

Unified Diff: src/handles.h

Issue 2306413002: Fully deserialize the scope chain after parsing, not before (Closed)
Patch Set: updates 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
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_); }

Powered by Google App Engine
This is Rietveld 408576698