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

Unified Diff: runtime/vm/code_generator.cc

Issue 10536067: Generate code for store buffer updates in open-coded object field stores. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: finish addressing review comments 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
Index: runtime/vm/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 42b0f13c4f34416fcc5bb89728ca89fb4bddc3a7..4b7203ed72dcec74ea953e4a8dd39350e50c9394 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -1561,4 +1561,14 @@ RawCode* FunctionsCache::LookupCode(const String& function_name,
return Code::null();
}
+
+// Adds a pointer to the store buffer.
+// Arg0: pointer
+DEFINE_RUNTIME_ENTRY(StoreBuffer, 1) {
+ ASSERT(arguments.Count() == kStoreBufferRuntimeEntry.argument_count());
+ RawObject* dest = arguments.At(0);
srdjan 2012/06/12 06:57:08 I would use the CheckedHandle thus verifying that
cshapiro 2012/06/12 21:41:01 This is not an object, just a field address. I th
+ uword ptr = reinterpret_cast<uword>(dest);
+ isolate->store_buffer()->AddPointer(ptr);
+}
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698