Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ee6b2e8d5b188c64bc174122c9b4e921d3b11793..d4e76f5c76f54607809dcec3b67c4915289110fe 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1822,6 +1822,15 @@ class V8_EXPORT Boolean : public Primitive { |
*/ |
class V8_EXPORT Name : public Primitive { |
public: |
+ /** |
+ * Returns the identity hash for this object. The current implementation |
+ * uses an inline property on the object to store the identity hash. |
+ * |
+ * The return value will never be 0. Also, it is not guaranteed to be |
+ * unique. |
+ */ |
+ int GetIdentityHash(); |
+ |
V8_INLINE static Name* Cast(v8::Value* obj); |
private: |
static void CheckCast(v8::Value* obj); |