Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 1540) |
+++ src/heap.h (working copy) |
@@ -195,7 +195,8 @@ |
V(space_symbol, " ") \ |
V(exec_symbol, "exec") \ |
V(zero_symbol, "0") \ |
- V(global_eval_symbol, "GlobalEval") |
+ V(global_eval_symbol, "GlobalEval") \ |
+ V(identity_hash_symbol, "v8::IdentityHash") |
// Forward declaration of the GCTracer class. |
@@ -646,6 +647,10 @@ |
#define SYMBOL_ACCESSOR(name, str) static String* name() { return name##_; } |
SYMBOL_LIST(SYMBOL_ACCESSOR) |
#undef SYMBOL_ACCESSOR |
+ |
+ // The hidden_symbol is special because it is the empty string, but does |
+ // not match the empty string. |
+ static String* hidden_symbol() { return hidden_symbol_; } |
// Iterates over all roots in the heap. |
static void IterateRoots(ObjectVisitor* v); |
@@ -899,6 +904,10 @@ |
#define SYMBOL_DECLARATION(name, str) static String* name##_; |
SYMBOL_LIST(SYMBOL_DECLARATION) |
#undef SYMBOL_DECLARATION |
+ |
+ // The special hidden symbol which is an empty string, but does not match |
+ // any string when looked up in properties. |
+ static String* hidden_symbol_; |
// GC callback function, called before and after mark-compact GC. |
// Allocations in the callback function are disallowed. |