| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 2c286e3f0bf3b4ff5d2e28b7f8d9aaff576c6e86..5b46285b09d8b533a6132d6424f12edba176ad73 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -973,9 +973,9 @@ TEST(TestCodeFlushing) {
|
| Heap::CollectAllGarbage(true);
|
| Heap::CollectAllGarbage(true);
|
|
|
| - // foo should still be in the compilation cache and therefore not
|
| - // have been removed.
|
| CHECK(function->shared()->is_compiled());
|
| +
|
| + Heap::CollectAllGarbage(true);
|
| Heap::CollectAllGarbage(true);
|
| Heap::CollectAllGarbage(true);
|
| Heap::CollectAllGarbage(true);
|
| @@ -983,7 +983,9 @@ TEST(TestCodeFlushing) {
|
|
|
| // foo should no longer be in the compilation cache
|
| CHECK(!function->shared()->is_compiled());
|
| + CHECK(!function->is_compiled());
|
| // Call foo to get it recompiled.
|
| CompileRun("foo()");
|
| CHECK(function->shared()->is_compiled());
|
| + CHECK(function->is_compiled());
|
| }
|
|
|