Index: test/cctest/test-unboxed-doubles.cc |
diff --git a/test/cctest/test-unboxed-doubles.cc b/test/cctest/test-unboxed-doubles.cc |
index 89f58a62e436a5514c2cb4c3fe8b0b763419a134..d3ba5c847ef4540fe7282b96ae7cf5f3625d176f 100644 |
--- a/test/cctest/test-unboxed-doubles.cc |
+++ b/test/cctest/test-unboxed-doubles.cc |
@@ -1035,7 +1035,7 @@ TEST(DoScavenge) { |
CcTest::heap()->CollectGarbage(i::NEW_SPACE); |
// Create temp object in the new space. |
- Handle<JSArray> temp = factory->NewJSArray(FAST_ELEMENTS, NOT_TENURED); |
+ Handle<JSArray> temp = factory->NewJSArray(FAST_ELEMENTS, WEAK, NOT_TENURED); |
CHECK(isolate->heap()->new_space()->Contains(*temp)); |
// Construct a double value that looks like a pointer to the new space object |
@@ -1088,7 +1088,8 @@ TEST(DoScavengeWithIncrementalWriteBarrier) { |
AlwaysAllocateScope always_allocate(isolate); |
// Make sure |obj_value| is placed on an old-space evacuation candidate. |
SimulateFullSpace(old_space); |
- obj_value = factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, TENURED); |
+ obj_value = |
+ factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, WEAK, TENURED); |
ec_page = Page::FromAddress(obj_value->address()); |
} |
@@ -1373,7 +1374,7 @@ TEST(StoreBufferScanOnScavenge) { |
CHECK(isolate->heap()->old_space()->Contains(*obj)); |
// Create temp object in the new space. |
- Handle<JSArray> temp = factory->NewJSArray(FAST_ELEMENTS, NOT_TENURED); |
+ Handle<JSArray> temp = factory->NewJSArray(FAST_ELEMENTS, WEAK, NOT_TENURED); |
CHECK(isolate->heap()->new_space()->Contains(*temp)); |
// Construct a double value that looks like a pointer to the new space object |
@@ -1572,7 +1573,8 @@ static void TestIncrementalWriteBarrier(Handle<Map> map, Handle<Map> new_map, |
// Make sure |obj_value| is placed on an old-space evacuation candidate. |
SimulateFullSpace(old_space); |
- obj_value = factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, TENURED); |
+ obj_value = |
+ factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, WEAK, TENURED); |
ec_page = Page::FromAddress(obj_value->address()); |
CHECK_NE(ec_page, Page::FromAddress(obj->address())); |
} |