Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index ab8ed0920a4c637b6c0bc67775c801ee287f2ec1..a7cd0e2497f74372b2eed759b8b386721493ed5e 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -226,6 +226,10 @@ class MaybeHandle final { |
} |
} |
+ // Returns the raw address where this handle is stored. This should only be |
+ // used for hashing handles; do not ever try to dereference it. |
+ V8_INLINE Address address() const { return bit_cast<Address>(location_); } |
+ |
bool is_null() const { return location_ == nullptr; } |
protected: |