Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 1ba0f5006a5a7257810ab2472a4939067aa52c22..dcf9941c62e1611fbba5f2f4b89ca123e4268f92 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -1517,6 +1517,9 @@ TEST(TestCodeFlushingIncrementalAbort) { |
} |
TEST(TestUseOfIncrementalBarrierOnCompileLazy) { |
+ // This test requires us to run the CompileLazy builtin, which won't be run |
+ // when the interpreter is used. |
+ if (i::FLAG_ignition) return; |
Michael Starzinger
2016/04/08 12:44:02
This should actually only happen because of eager
Michael Starzinger
2016/04/08 12:53:05
Actually, as discussed offline: This should even w
mvstanton
2016/04/11 13:36:14
Yes, it still fails with --turbo and --ignition. I
mvstanton
2016/04/11 13:36:14
Acknowledged.
|
// Turn off always_opt because it interferes with running the built-in for |
// the last call to g(). |
i::FLAG_always_opt = false; |
@@ -1546,10 +1549,7 @@ TEST(TestUseOfIncrementalBarrierOnCompileLazy) { |
Handle<Object> g_value = |
Object::GetProperty(isolate->global_object(), g_name).ToHandleChecked(); |
Handle<JSFunction> g_function = Handle<JSFunction>::cast(g_value); |
- // TODO(mvstanton): change to check that g is *not* compiled when optimized |
- // cache |
- // map lookup moves to the compile lazy builtin. |
- CHECK(g_function->is_compiled()); |
+ CHECK(!g_function->is_compiled()); |
SimulateIncrementalMarking(heap); |
CompileRun("%OptimizeFunctionOnNextCall(f); f();"); |