| Index: test/cctest/heap/test-heap.cc
|
| diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
|
| index d09d07d074c8e4c61dbd6be57547794a53fab3d4..1ba0f5006a5a7257810ab2472a4939067aa52c22 100644
|
| --- a/test/cctest/heap/test-heap.cc
|
| +++ b/test/cctest/heap/test-heap.cc
|
| @@ -1546,7 +1546,10 @@
|
| Handle<Object> g_value =
|
| Object::GetProperty(isolate->global_object(), g_name).ToHandleChecked();
|
| Handle<JSFunction> g_function = Handle<JSFunction>::cast(g_value);
|
| - CHECK(!g_function->is_compiled());
|
| + // 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());
|
|
|
| SimulateIncrementalMarking(heap);
|
| CompileRun("%OptimizeFunctionOnNextCall(f); f();");
|
|
|