Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 19457858fb3abda3aad8af946a86eb7ca934d871..19f7b65784e7b2e53979c71f8144f951ef47b647 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -475,6 +475,27 @@ Handle<Object> HashTableKey::AsHandle(Isolate* isolate) { |
} |
+Handle<Object> StringTableShape::AsHandle(Isolate* isolate, HashTableKey* key) { |
+ return key->AsHandle(isolate); |
+} |
+ |
+ |
+Handle<Object> MapCacheShape::AsHandle(Isolate* isolate, HashTableKey* key) { |
+ return key->AsHandle(isolate); |
+} |
+ |
+ |
+Handle<Object> CompilationCacheShape::AsHandle(Isolate* isolate, |
+ HashTableKey* key) { |
+ return key->AsHandle(isolate); |
+} |
+ |
+ |
+Handle<Object> CodeCacheHashTableShape::AsHandle(Isolate* isolate, |
+ HashTableKey* key) { |
+ return key->AsHandle(isolate); |
+} |
+ |
template <typename Char> |
class SequentialStringKey : public HashTableKey { |
public: |
@@ -6628,10 +6649,12 @@ uint32_t UnseededNumberDictionaryShape::HashForObject(uint32_t key, |
return ComputeIntegerHash(static_cast<uint32_t>(other->Number()), 0); |
} |
+ |
uint32_t SeededNumberDictionaryShape::SeededHash(uint32_t key, uint32_t seed) { |
return ComputeIntegerHash(key, seed); |
} |
+ |
uint32_t SeededNumberDictionaryShape::SeededHashForObject(uint32_t key, |
uint32_t seed, |
Object* other) { |
@@ -6639,9 +6662,6 @@ uint32_t SeededNumberDictionaryShape::SeededHashForObject(uint32_t key, |
return ComputeIntegerHash(static_cast<uint32_t>(other->Number()), seed); |
} |
-MaybeObject* NumberDictionaryShape::AsObject(Heap* heap, uint32_t key) { |
- return heap->NumberFromUint32(key); |
-} |
Handle<Object> NumberDictionaryShape::AsHandle(Isolate* isolate, uint32_t key) { |
return isolate->factory()->NewNumberFromUint(key); |
@@ -6666,12 +6686,6 @@ uint32_t NameDictionaryShape::HashForObject(Handle<Name> key, Object* other) { |
} |
-MaybeObject* NameDictionaryShape::AsObject(Heap* heap, Handle<Name> key) { |
- ASSERT(key->IsUniqueName()); |
- return *key; |
-} |
- |
- |
Handle<Object> NameDictionaryShape::AsHandle(Isolate* isolate, |
Handle<Name> key) { |
ASSERT(key->IsUniqueName()); |
@@ -6701,11 +6715,6 @@ uint32_t ObjectHashTableShape::HashForObject(Handle<Object> key, |
} |
-MaybeObject* ObjectHashTableShape::AsObject(Heap* heap, Handle<Object> key) { |
- return *key; |
-} |
- |
- |
Handle<Object> ObjectHashTableShape::AsHandle(Isolate* isolate, |
Handle<Object> key) { |
return key; |