Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2104)

Unified Diff: src/heap/heap-inl.h

Issue 677043002: Flush code faster when doing emergency GCs. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Change ReleaseUnoptimizedCode test to a harder test that fails without this CL Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698