Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7378faa5b162b2f4797346fdc713f5302c79690e..7c5e05a209599d6ac2f19c79604c4c652e9d44e9 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -4524,7 +4524,9 @@ class WeakHashTable: public HashTable<WeakHashTable, |
| // Adds (or overwrites) the value associated with the given key. Mapping a |
| // key to the hole value causes removal of the whole entry. |
| - MUST_USE_RESULT MaybeObject* Put(Object* key, Object* value); |
| + MUST_USE_RESULT static Handle<WeakHashTable> Put(Handle<WeakHashTable> table, |
| + Handle<Object> key, |
|
Yang
2014/04/25 07:32:27
please align arguments
Igor Sheludko
2014/04/25 08:10:34
Done.
|
| + Handle<Object> value); |
| // This function is called when heap verification is turned on. |
| void Zap(Object* value) { |
| @@ -4538,7 +4540,7 @@ class WeakHashTable: public HashTable<WeakHashTable, |
| private: |
| friend class MarkCompactCollector; |
| - void AddEntry(int entry, Object* key, Object* value); |
| + void AddEntry(int entry, Handle<Object> key, Handle<Object> value); |
| // Returns the index to the value of an entry. |
| static inline int EntryToValueIndex(int entry) { |