| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index 9e3421e3220fdd8606cfe2f3445f92b91f3f97d9..bcbf76df10a033d1f9eecee164eb636432cb58e8 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -774,6 +774,15 @@ void VerifySmisVisitor::VisitPointers(Object** start, Object** end) {
|
| CHECK((*current)->IsSmi());
|
| }
|
| }
|
| +
|
| +
|
| +FlushEagerly::FlushEagerly(Heap* heap)
|
| + : heap_(heap), old_state_(heap->flush_eagerly()) {
|
| + heap->set_flush_eagerly(true);
|
| +}
|
| +
|
| +
|
| +FlushEagerly::~FlushEagerly() { heap_->set_flush_eagerly(old_state_); }
|
| }
|
| } // namespace v8::internal
|
|
|
|
|