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

Unified Diff: runtime/vm/store_buffer.cc

Issue 10578046: - Inline the store buffer update into a stub instead of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/store_buffer.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/store_buffer.cc
===================================================================
--- runtime/vm/store_buffer.cc (revision 8921)
+++ runtime/vm/store_buffer.cc (working copy)
@@ -13,4 +13,14 @@
top_ = 0; // Currently just reset back to the beginning.
}
+
+bool StoreBufferBlock::Contains(uword pointer) {
+ for (int32_t i = 0; i < top_; i++) {
+ if (pointers_[i] == pointer) {
+ return true;
+ }
+ }
+ return false;
+}
+
} // namespace dart
« no previous file with comments | « runtime/vm/store_buffer.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698