Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 37eb1393ff2b13f4ca3dc19bed21669b79fead40..ac8f7493bcb7afdfd91d46acc27105cd54d58bd9 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4064,7 +4064,7 @@ class Dictionary: public HashTable<Derived, Shape, Key> { |
PretenureFlag pretenure = NOT_TENURED); |
// Creates a new dictionary. |
- static Handle<Derived> New( |
+ MUST_USE_RESULT static Handle<Derived> New( |
Isolate* isolate, |
int at_least_space_for, |
PretenureFlag pretenure = NOT_TENURED); |
@@ -4089,9 +4089,11 @@ class Dictionary: public HashTable<Derived, Shape, Key> { |
Object* value, |
PropertyDetails details); |
- MUST_USE_RESULT MaybeObject* Add(Key key, |
- Object* value, |
- PropertyDetails details); |
+ MUST_USE_RESULT static Handle<Derived> Add( |
+ Handle<Derived> dictionary, |
+ Key key, |
+ Handle<Object> value, |
+ PropertyDetails details); |
protected: |
// Generic at put operation. |
@@ -4150,12 +4152,6 @@ class NameDictionary: public Dictionary<NameDictionary, |
// Find entry for key, otherwise return kNotFound. Optimized version of |
// HashTable::FindEntry. |
int FindEntry(Name* key); |
- |
- // TODO(mstarzinger): Temporary wrapper until handlified. |
- static Handle<NameDictionary> AddNameEntry(Handle<NameDictionary> dict, |
- Handle<Name> name, |
- Handle<Object> value, |
- PropertyDetails details); |
}; |