Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 2630110c5982c2ead546377ad908886d8ce6ce11..781ad1f69f8877fba50c040bc20fd464d1f8bc4b 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -193,7 +193,7 @@ TEST(Regress2060a) { |
HandleScope scope(isolate); |
for (int i = 0; i < 32; i++) { |
Handle<JSObject> object = factory->NewJSObject(function, TENURED); |
- CHECK(!heap->InNewSpace(object->address())); |
+ CHECK(!heap->InNewSpace(*object)); |
CHECK(!first_page->Contains(object->address())); |
int32_t hash = Object::GetOrCreateHash(isolate, key)->value(); |
JSWeakCollection::Set(weakmap, key, object, hash); |
@@ -231,7 +231,7 @@ TEST(Regress2060b) { |
Handle<JSObject> keys[32]; |
for (int i = 0; i < 32; i++) { |
keys[i] = factory->NewJSObject(function, TENURED); |
- CHECK(!heap->InNewSpace(keys[i]->address())); |
+ CHECK(!heap->InNewSpace(*keys[i])); |
CHECK(!first_page->Contains(keys[i]->address())); |
} |
Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate); |