Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 07d0102f08bac9a76db76673d37dc4b685603db4..09aa613eee4e618e79fea8de93285fa07ccb37e0 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2006-2008 the V8 project authors. All rights reserved. |
#include <stdlib.h> |
@@ -1070,7 +1070,7 @@ TEST(TestInternalWeakLists) { |
for (int i = 0; i < kNumTestContexts; i++) { |
ctx[i] = v8::Context::New(); |
- bool opt = (FLAG_always_opt && !i::FLAG_always_full_compiler); |
+ bool opt = (FLAG_always_opt && i::V8::UseCrankshaft()); |
CHECK_EQ(i + 1, CountGlobalContexts()); |
@@ -1204,7 +1204,7 @@ TEST(TestInternalWeakListsTraverseWithGC) { |
CHECK_EQ(i + 1, CountGlobalContextsWithGC(i / 2 + 1)); |
} |
- bool opt = (FLAG_always_opt && !i::FLAG_always_full_compiler); |
+ bool opt = (FLAG_always_opt && i::V8::UseCrankshaft()); |
// Compile a number of functions the length of the weak list of optimized |
// functions both with and without GCs while iterating the list. |