Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7ed297340373326cc33c02e3d43173371bf1d04c..14880a18281941bb80efc3f4e5b238bebc550a90 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -1731,7 +1731,7 @@ class JSObject: public JSReceiver { |
| static int GetIdentityHash(Handle<JSObject> obj); |
| MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); |
| - MUST_USE_RESULT MaybeObject* SetIdentityHash(Object* hash, CreationFlag flag); |
| + MUST_USE_RESULT MaybeObject* SetIdentityHash(Smi* hash, CreationFlag flag); |
| static Handle<Object> DeleteProperty(Handle<JSObject> obj, |
| Handle<String> name); |
| @@ -2235,16 +2235,16 @@ class JSObject: public JSReceiver { |
| Object* setter, |
| PropertyAttributes attributes); |
| - // Returns the hidden properties backing store object, currently |
| - // a StringDictionary, stored on this object. |
| - // If no hidden properties object has been put on this object, |
| - // return undefined, unless create_if_absent is true, in which case |
| - // a new dictionary is created, added to this object, and returned. |
| - MUST_USE_RESULT MaybeObject* GetHiddenPropertiesDictionary( |
| + // If create_if_absent is true, return the hash table backing store |
| + // for hidden properties. If there is no backing store, allocate one. |
| + // If create_if_absent is false, return the hash table backing store |
| + // or the inline stored identity hash, whatever is found. |
| + MUST_USE_RESULT MaybeObject* GetHiddenPropertiesHashTable( |
| bool create_if_absent); |
| - // Updates the existing hidden properties dictionary. |
| - MUST_USE_RESULT MaybeObject* SetHiddenPropertiesDictionary( |
| - StringDictionary* dictionary); |
| + // Set the hidden property backing store to either a hash table or |
| + // the inline-stored identity hash. |
| + MUST_USE_RESULT MaybeObject* SetHiddenPropertiesHashTable( |
| + Object* hidden); |
| DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject); |
| }; |
| @@ -2799,6 +2799,7 @@ class HashTable: public FixedArray { |
| // Returns a new HashTable object. Might return Failure. |
| MUST_USE_RESULT static MaybeObject* Allocate( |
| int at_least_space_for, |
| + bool force_capacity = false, |
|
Toon Verwaest
2012/07/30 09:13:24
Can this be an enum?
|
| PretenureFlag pretenure = NOT_TENURED); |
| // Computes the required capacity for a table holding the given |