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

Unified Diff: src/store-buffer-inl.h

Issue 6250076: Start using store buffers. Handle store buffer overflow situation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 11 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
Index: src/store-buffer-inl.h
===================================================================
--- src/store-buffer-inl.h (revision 6554)
+++ src/store-buffer-inl.h (working copy)
@@ -51,6 +51,21 @@
}
}
+
+void StoreBuffer::EnterDirectlyIntoStoreBuffer(Address addr) {
+ if (store_buffer_rebuilding_enabled_) {
+ Address* top = old_top_;
+ *top++ = addr;
+ old_top_ = top;
+ if (top >= old_limit_) {
+ Counters::store_buffer_overflows.Increment();
+ store_buffer_mode_ = kStoreBufferDisabled;
+ old_top_ = old_start_;
+ }
+ }
+}
+
+
} } // namespace v8::internal
#endif // V8_WRITE_BARRIER_INL_H_
« src/store-buffer.h ('K') | « src/store-buffer.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698