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

Unified Diff: src/store-buffer.h

Issue 16690006: Clean up StoreBuffer::EnsureSpace. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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.cc ('k') | src/store-buffer.cc » ('j') | src/store-buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/store-buffer.h
diff --git a/src/store-buffer.h b/src/store-buffer.h
index 514534a1ed72c5af95827ffd3926ad90f497e976..c1052fa1a108c9bfce430674d784e2734fae15d4 100644
--- a/src/store-buffer.h
+++ b/src/store-buffer.h
@@ -111,6 +111,7 @@ class StoreBuffer {
// been promoted. Rebuilds the store buffer completely if it overflowed.
void SortUniq();
+ bool SpaceAvailable(intptr_t space_needed);
Michael Starzinger 2013/06/11 12:23:48 This helper function should definitely be private,
Hannes Payer (out of office) 2013/06/12 13:14:25 Done.
void EnsureSpace(intptr_t space_needed);
Michael Starzinger 2013/06/11 12:23:48 As discussed offline: It would be great to have on
Hannes Payer (out of office) 2013/06/12 13:14:25 Done.
void Verify();
@@ -160,7 +161,6 @@ class StoreBuffer {
void ClearFilteringHashSets();
- void CheckForFullBuffer();
void Uniq();
void ExemptPopularPages(int prime_sample_step, int threshold);
@@ -223,7 +223,6 @@ class StoreBufferRebuildScope {
~StoreBufferRebuildScope() {
store_buffer_->callback_ = stored_callback_;
store_buffer_->store_buffer_rebuilding_enabled_ = stored_state_;
- store_buffer_->CheckForFullBuffer();
}
private:
« no previous file with comments | « src/heap.cc ('k') | src/store-buffer.cc » ('j') | src/store-buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698