Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 40482be7edbd755cc06430d60b8816f448ad2cb2..8ed5bf76680b65f850e9517a1a9a9be14bc299ae 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -961,17 +961,18 @@ TEST(TestCodeFlushing) { |
Handle<JSFunction> function(JSFunction::cast(func_value)); |
CHECK(function->shared()->is_compiled()); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
+ // TODO(1609) Currently incremental marker does not support code flushing. |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
CHECK(function->shared()->is_compiled()); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
+ HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask); |
// foo should no longer be in the compilation cache |
CHECK(!function->shared()->is_compiled() || function->IsOptimized()); |