Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 978704ac54286aff224e370390121e305cd45100..c7ded8db7b63ca33df60068357bba10eb433c1af 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -920,6 +920,13 @@ bool Object::IsObjectHashTable() { |
} |
+bool Object::IsOrderedHashTable() { |
+ return IsHeapObject() && |
+ HeapObject::cast(this)->map() == |
+ HeapObject::cast(this)->GetHeap()->ordered_hash_table_map(); |
+} |
+ |
+ |
bool Object::IsPrimitive() { |
return IsOddball() || IsNumber() || IsString(); |
} |
@@ -6588,28 +6595,22 @@ MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Name* key) { |
} |
-template <int entrysize> |
-bool ObjectHashTableShape<entrysize>::IsMatch(Object* key, Object* other) { |
+bool ObjectHashTableShape::IsMatch(Object* key, Object* other) { |
return key->SameValue(other); |
} |
-template <int entrysize> |
-uint32_t ObjectHashTableShape<entrysize>::Hash(Object* key) { |
+uint32_t ObjectHashTableShape::Hash(Object* key) { |
return Smi::cast(key->GetHash())->value(); |
} |
-template <int entrysize> |
-uint32_t ObjectHashTableShape<entrysize>::HashForObject(Object* key, |
- Object* other) { |
+uint32_t ObjectHashTableShape::HashForObject(Object* key, Object* other) { |
return Smi::cast(other->GetHash())->value(); |
} |
-template <int entrysize> |
-MaybeObject* ObjectHashTableShape<entrysize>::AsObject(Heap* heap, |
- Object* key) { |
+MaybeObject* ObjectHashTableShape::AsObject(Heap* heap, Object* key) { |
return key; |
} |