Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index fb113019d85abbea4b991e3d7481298b79f47f8c..48fa550cd89839d01bb47f020131b5c21ede9620 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -896,9 +896,8 @@ TEST(Iteration) { |
// Allocate a JS array to OLD_SPACE and NEW_SPACE |
objs[next_objs_index++] = factory->NewJSArray(10); |
- objs[next_objs_index++] = factory->NewJSArray(10, |
- FAST_HOLEY_ELEMENTS, |
- TENURED); |
+ objs[next_objs_index++] = |
+ factory->NewJSArray(10, FAST_HOLEY_ELEMENTS, WEAK, TENURED); |
// Allocate a small string to OLD_DATA_SPACE and NEW_SPACE |
objs[next_objs_index++] = factory->NewStringFromStaticChars("abcdefghij"); |
@@ -2211,7 +2210,8 @@ TEST(PrototypeTransitionClearing) { |
{ |
AlwaysAllocateScope always_allocate(isolate); |
SimulateFullSpace(space); |
- prototype = factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, TENURED); |
+ prototype = |
+ factory->NewJSArray(32 * KB, FAST_HOLEY_ELEMENTS, WEAK, TENURED); |
} |
// Add a prototype on an evacuation candidate and verify that transition |
@@ -3912,9 +3912,8 @@ TEST(Regress169928) { |
JSArray::kSize + AllocationMemento::kSize + |
kPointerSize); |
- Handle<JSArray> array = factory->NewJSArrayWithElements(array_data, |
- FAST_SMI_ELEMENTS, |
- NOT_TENURED); |
+ Handle<JSArray> array = |
+ factory->NewJSArrayWithElements(array_data, FAST_SMI_ELEMENTS); |
CHECK_EQ(Smi::FromInt(2), array->length()); |
CHECK(array->HasFastSmiOrObjectElements()); |