| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index ee476db6cdc4729b1a65a560fe03734a65f2bfdb..e57c93799f237a0a6fbffa3de83ab1812f6150c0 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -2218,6 +2218,7 @@ TEST(OptimizedPretenuringAllocationFolding) {
|
| i::FLAG_expose_gc = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| @@ -2268,6 +2269,7 @@ TEST(OptimizedPretenuringObjectArrayLiterals) {
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| // Grow new space unitl maximum capacity reached.
|
| @@ -2307,6 +2309,7 @@ TEST(OptimizedPretenuringMixedInObjectProperties) {
|
| i::FLAG_expose_gc = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| @@ -2359,6 +2362,7 @@ TEST(OptimizedPretenuringDoubleArrayProperties) {
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| // Grow new space unitl maximum capacity reached.
|
| @@ -2399,6 +2403,7 @@ TEST(OptimizedPretenuringdoubleArrayLiterals) {
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| // Grow new space unitl maximum capacity reached.
|
| @@ -2438,6 +2443,7 @@ TEST(OptimizedPretenuringNestedMixedArrayLiterals) {
|
| i::FLAG_expose_gc = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| @@ -2487,6 +2493,7 @@ TEST(OptimizedPretenuringNestedObjectLiterals) {
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| // Grow new space unitl maximum capacity reached.
|
| @@ -2536,6 +2543,7 @@ TEST(OptimizedPretenuringNestedDoubleLiterals) {
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| if (i::FLAG_gc_global || i::FLAG_stress_compaction) return;
|
| + if (!i::FLAG_allocation_site_pretenuring) return;
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| // Grow new space unitl maximum capacity reached.
|
| @@ -3856,6 +3864,7 @@ static int AllocationSitesCount(Heap* heap) {
|
|
|
| TEST(EnsureAllocationSiteDependentCodesProcessed) {
|
| if (i::FLAG_always_opt || !i::FLAG_crankshaft) return;
|
| + if (!i::FLAG_allocation_site_transitioning) return;
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
|
|