Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index ab8ed0920a4c637b6c0bc67775c801ee287f2ec1..1f97d6ff7e6d95c76b521baf45938e5f1c5f8243 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -42,10 +42,6 @@ |
} |
V8_INLINE bool is_null() const { return location_ == nullptr; } |
- |
- // 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_); } |
protected: |
// Provides the C++ dereference operator. |
@@ -136,14 +132,14 @@ |
// Provide function object for location equality comparison. |
struct equal_to : public std::binary_function<Handle<T>, Handle<T>, bool> { |
V8_INLINE bool operator()(Handle<T> lhs, Handle<T> rhs) const { |
- return lhs.address() == rhs.address(); |
+ return lhs.location() == rhs.location(); |
} |
}; |
// Provide function object for location hashing. |
struct hash : public std::unary_function<Handle<T>, size_t> { |
V8_INLINE size_t operator()(Handle<T> const& handle) const { |
- return base::hash<void*>()(handle.address()); |
+ return base::hash<void*>()(handle.location()); |
} |
}; |