Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index fc6a1ec40ff13a047aceb5d585f7b6a5c7f06217..fa7a70b63500aed506bfa1892a862b3d65b8f63a 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1332,7 +1332,7 @@ TEST(TestInternalWeakLists) { |
isolate->compilation_cache()->Clear(); |
heap->CollectAllGarbage(Heap::kNoGCFlags); |
- bool opt = (FLAG_always_opt && i::V8::UseCrankshaft()); |
+ bool opt = (FLAG_always_opt && isolate->use_crankshaft()); |
CHECK_EQ(i + 1, CountNativeContexts()); |
@@ -1476,7 +1476,7 @@ TEST(TestInternalWeakListsTraverseWithGC) { |
CHECK_EQ(i + 1, CountNativeContextsWithGC(isolate, i / 2 + 1)); |
} |
- bool opt = (FLAG_always_opt && i::V8::UseCrankshaft()); |
+ bool opt = (FLAG_always_opt && isolate->use_crankshaft()); |
// Compile a number of functions the length of the weak list of optimized |
// functions both with and without GCs while iterating the list. |
@@ -1876,7 +1876,7 @@ TEST(InstanceOfStubWriteBarrier) { |
#endif |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft()) return; |
+ if (!i::Isolate::Current()->use_crankshaft()) return; |
if (i::FLAG_force_marking_deque_overflows) return; |
v8::HandleScope outer_scope(v8::Isolate::GetCurrent()); |
@@ -1993,7 +1993,7 @@ TEST(ResetSharedFunctionInfoCountersDuringIncrementalMarking) { |
#endif |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft()) return; |
+ if (!i::Isolate::Current()->use_crankshaft()) return; |
v8::HandleScope outer_scope(v8::Isolate::GetCurrent()); |
{ |
@@ -2050,7 +2050,7 @@ TEST(ResetSharedFunctionInfoCountersDuringMarkSweep) { |
#endif |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft()) return; |
+ if (!i::Isolate::Current()->use_crankshaft()) return; |
v8::HandleScope outer_scope(CcTest::isolate()); |
{ |
@@ -2089,7 +2089,7 @@ TEST(ResetSharedFunctionInfoCountersDuringMarkSweep) { |
TEST(OptimizedAllocationAlwaysInNewSpace) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
@@ -2118,7 +2118,7 @@ TEST(OptimizedAllocationAlwaysInNewSpace) { |
TEST(OptimizedPretenuringAllocationFolding) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2154,7 +2154,7 @@ TEST(OptimizedPretenuringAllocationFolding) { |
TEST(OptimizedPretenuringAllocationFoldingBlocks) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2190,7 +2190,7 @@ TEST(OptimizedPretenuringAllocationFoldingBlocks) { |
TEST(OptimizedPretenuringObjectArrayLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2215,7 +2215,7 @@ TEST(OptimizedPretenuringObjectArrayLiterals) { |
TEST(OptimizedPretenuringMixedInObjectProperties) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2246,7 +2246,7 @@ TEST(OptimizedPretenuringMixedInObjectProperties) { |
TEST(OptimizedPretenuringDoubleArrayProperties) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2271,7 +2271,7 @@ TEST(OptimizedPretenuringDoubleArrayProperties) { |
TEST(OptimizedPretenuringdoubleArrayLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2296,7 +2296,7 @@ TEST(OptimizedPretenuringdoubleArrayLiterals) { |
TEST(OptimizedPretenuringNestedMixedArrayLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2330,7 +2330,7 @@ TEST(OptimizedPretenuringNestedMixedArrayLiterals) { |
TEST(OptimizedPretenuringNestedObjectLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2364,7 +2364,7 @@ TEST(OptimizedPretenuringNestedObjectLiterals) { |
TEST(OptimizedPretenuringNestedDoubleLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |
@@ -2401,7 +2401,7 @@ TEST(OptimizedPretenuringNestedDoubleLiterals) { |
TEST(OptimizedAllocationArrayLiterals) { |
i::FLAG_allow_natives_syntax = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
@@ -2428,7 +2428,7 @@ TEST(OptimizedPretenuringCallNew) { |
i::FLAG_allow_natives_syntax = true; |
i::FLAG_pretenuring_call_new = true; |
CcTest::InitializeVM(); |
- if (!i::V8::UseCrankshaft() || i::FLAG_always_opt) return; |
+ if (!i::Isolate::Current()->use_crankshaft() || i::FLAG_always_opt) return; |
if (i::FLAG_gc_global || i::FLAG_stress_compaction) return; |
v8::HandleScope scope(CcTest::isolate()); |
HEAP->SetNewSpaceHighPromotionModeActive(true); |