Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index dc3aa466693f8cf7557fbcc3218171f9807b89d5..496f325618cbd3371d29058869f4a0595a3c14dc 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1975,7 +1975,7 @@ int HashTable<Shape, Key>::FindEntry(Isolate* isolate, Key key) { |
while (true) { |
Object* element = KeyAt(entry); |
if (element == isolate->heap()->undefined_value()) break; // Empty entry. |
- if (element != isolate->heap()->null_value() && |
+ if (element != isolate->heap()->the_hole_value() && |
Shape::IsMatch(key, element)) return entry; |
entry = NextProbe(entry, count++, capacity); |
} |
@@ -4434,7 +4434,6 @@ bool ObjectHashTableShape<entrysize>::IsMatch(Object* key, Object* other) { |
template <int entrysize> |
uint32_t ObjectHashTableShape<entrysize>::Hash(Object* key) { |
- ASSERT(!key->IsUndefined() && !key->IsNull()); |
rossberg
2011/11/02 15:17:37
Don't you still need the IsUndefined part of the a
Michael Starzinger
2011/11/02 15:52:26
This assertion is now covered by ASSERT(IsKey(key)
|
MaybeObject* maybe_hash = key->GetHash(OMIT_CREATION); |
return Smi::cast(maybe_hash->ToObjectChecked())->value(); |
} |
@@ -4443,7 +4442,6 @@ uint32_t ObjectHashTableShape<entrysize>::Hash(Object* key) { |
template <int entrysize> |
uint32_t ObjectHashTableShape<entrysize>::HashForObject(Object* key, |
Object* other) { |
- ASSERT(!other->IsUndefined() && !other->IsNull()); |
rossberg
2011/11/02 15:17:37
Same here.
Michael Starzinger
2011/11/02 15:52:26
Likewise.
|
MaybeObject* maybe_hash = other->GetHash(OMIT_CREATION); |
return Smi::cast(maybe_hash->ToObjectChecked())->value(); |
} |
@@ -4455,11 +4453,6 @@ MaybeObject* ObjectHashTableShape<entrysize>::AsObject(Object* key) { |
} |
-void ObjectHashTable::RemoveEntry(int entry) { |
- RemoveEntry(entry, GetHeap()); |
-} |
- |
- |
void Map::ClearCodeCache(Heap* heap) { |
// No write barrier is needed since empty_fixed_array is not in new space. |
// Please note this function is used during marking: |