Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 85807ee34629df866445e9e7c0163706367a88c3..37eb1393ff2b13f4ca3dc19bed21669b79fead40 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4095,13 +4095,22 @@ class Dictionary: public HashTable<Derived, Shape, Key> { |
protected: |
// Generic at put operation. |
- MUST_USE_RESULT MaybeObject* AtPut(Key key, Object* value); |
+ MUST_USE_RESULT static Handle<Derived> AtPut( |
+ Handle<Derived> dictionary, |
+ Key key, |
+ Handle<Object> value); |
// Add entry to dictionary. |
MUST_USE_RESULT MaybeObject* AddEntry(Key key, |
Object* value, |
PropertyDetails details, |
uint32_t hash); |
+ MUST_USE_RESULT static Handle<Derived> AddEntry( |
+ Handle<Derived> dictionary, |
+ Key key, |
+ Handle<Object> value, |
+ PropertyDetails details, |
+ uint32_t hash); |
// Generate new enumeration indices to avoid enumeration index overflow. |
MUST_USE_RESULT MaybeObject* GenerateNewEnumerationIndices(); |
@@ -4117,6 +4126,7 @@ class NameDictionaryShape : public BaseShape<Name*> { |
static inline uint32_t HashForObject(Name* key, Object* object); |
MUST_USE_RESULT static inline MaybeObject* AsObject(Heap* heap, |
Name* key); |
+ static inline Handle<Object> AsHandle(Isolate* isolate, Name* key); |
static const int kPrefixSize = 2; |
static const int kEntrySize = 3; |
static const bool kIsEnumerable = true; |
@@ -4211,10 +4221,6 @@ class SeededNumberDictionary |
Handle<Object> value, |
PropertyDetails details); |
- MUST_USE_RESULT MaybeObject* Set(uint32_t key, |
- Object* value, |
- PropertyDetails details); |
- |
void UpdateMaxNumberKey(uint32_t key); |
// If slow elements are required we will never go back to fast-case |