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_); } |