Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 9564ff0be077f56e1e3abd8361f5c778b4ae0dfb..63fb32e451a8f96182d24afbb6f8806e210d31a1 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -843,6 +843,9 @@ bool Object::IsWeakHashTable() const { |
| } |
| +bool Object::IsEmbeddedMapCache() const { return IsHashTable(); } |
| + |
| + |
| bool Object::IsDictionary() const { |
| return IsHashTable() && |
| this != HeapObject::cast(this)->GetHeap()->string_table(); |
| @@ -3308,6 +3311,7 @@ CAST_ACCESSOR(Symbol) |
| CAST_ACCESSOR(UnseededNumberDictionary) |
| CAST_ACCESSOR(WeakCell) |
| CAST_ACCESSOR(WeakHashTable) |
| +CAST_ACCESSOR(EmbeddedMapCache) |
|
Hannes Payer (out of office)
2014/11/17 17:34:33
alphabetic order
|
| template <class Traits> |
| @@ -7022,29 +7026,29 @@ Handle<ObjectHashTable> ObjectHashTable::Shrink( |
| template <int entrysize> |
| -bool WeakHashTableShape<entrysize>::IsMatch(Handle<Object> key, Object* other) { |
| +bool HeapPointerShape<entrysize>::IsMatch(Handle<Object> key, Object* other) { |
| return key->SameValue(other); |
| } |
| template <int entrysize> |
| -uint32_t WeakHashTableShape<entrysize>::Hash(Handle<Object> key) { |
| +uint32_t HeapPointerShape<entrysize>::Hash(Handle<Object> key) { |
| intptr_t hash = reinterpret_cast<intptr_t>(*key); |
| return (uint32_t)(hash & 0xFFFFFFFF); |
| } |
| template <int entrysize> |
| -uint32_t WeakHashTableShape<entrysize>::HashForObject(Handle<Object> key, |
| - Object* other) { |
| +uint32_t HeapPointerShape<entrysize>::HashForObject(Handle<Object> key, |
| + Object* other) { |
| intptr_t hash = reinterpret_cast<intptr_t>(other); |
| return (uint32_t)(hash & 0xFFFFFFFF); |
| } |
| template <int entrysize> |
| -Handle<Object> WeakHashTableShape<entrysize>::AsHandle(Isolate* isolate, |
| - Handle<Object> key) { |
| +Handle<Object> HeapPointerShape<entrysize>::AsHandle(Isolate* isolate, |
| + Handle<Object> key) { |
| return key; |
| } |