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