Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 46539311de9625d9c7ffccc54bd476ab5510a47b..7420d886547c921d7d7d7823574c170ed9718d64 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13492,11 +13492,10 @@ MaybeObject* ObjectHashTable::Put(Object* key, Object* value) { |
} |
// Check whether the hash table should be extended. |
- Object* obj; |
+ ObjectHashTable* table; |
{ MaybeObject* maybe_obj = EnsureCapacity(1, key); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
+ if (!maybe_obj->To(&table)) return maybe_obj; |
} |
- ObjectHashTable* table = ObjectHashTable::cast(obj); |
table->AddEntry(table->FindInsertionEntry(hash), key, value); |
return table; |
} |