Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index dbb7311e83619f3770fdb0fc2f2ff3dd7e38b5dc..8ed1812437293a7dd95f2a435210cf9971068a23 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -90,7 +90,8 @@ TEST(WeakSet_Weakness) { |
{ |
HandleScope scope(isolate); |
Handle<Smi> smi(Smi::FromInt(23), isolate); |
- Runtime::WeakCollectionSet(weakset, key, smi); |
+ int32_t hash = Object::GetOrCreateHash(isolate, key)->value(); |
+ Runtime::WeakCollectionSet(weakset, key, smi, hash); |
} |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
@@ -145,7 +146,8 @@ TEST(WeakSet_Shrinking) { |
for (int i = 0; i < 32; i++) { |
Handle<JSObject> object = factory->NewJSObjectFromMap(map); |
Handle<Smi> smi(Smi::FromInt(i), isolate); |
- Runtime::WeakCollectionSet(weakset, object, smi); |
+ int32_t hash = Object::GetOrCreateHash(isolate, object)->value(); |
+ Runtime::WeakCollectionSet(weakset, object, smi, hash); |
} |
} |
@@ -193,7 +195,8 @@ TEST(WeakSet_Regress2060a) { |
Handle<JSObject> object = factory->NewJSObject(function, TENURED); |
CHECK(!heap->InNewSpace(object->address())); |
CHECK(!first_page->Contains(object->address())); |
- Runtime::WeakCollectionSet(weakset, key, object); |
+ int32_t hash = Object::GetOrCreateHash(isolate, key)->value(); |
+ Runtime::WeakCollectionSet(weakset, key, object, hash); |
} |
} |
@@ -235,7 +238,8 @@ TEST(WeakSet_Regress2060b) { |
Handle<JSWeakSet> weakset = AllocateJSWeakSet(isolate); |
for (int i = 0; i < 32; i++) { |
Handle<Smi> smi(Smi::FromInt(i), isolate); |
- Runtime::WeakCollectionSet(weakset, keys[i], smi); |
+ int32_t hash = Object::GetOrCreateHash(isolate, keys[i])->value(); |
+ Runtime::WeakCollectionSet(weakset, keys[i], smi, hash); |
} |
// Force compacting garbage collection. The subsequent collections are used |