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

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: correct handling of null 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/assembler_ia32.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 725858bc713d7946dc32cfd15bbd7e4fc34e102f..b44dc97c806d444bfedda07fcb435601709e5573 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -1574,4 +1574,14 @@ RawCode* FunctionsCache::LookupCode(const String& function_name,
return Code::null();
}
+
+// Adds a pointer to the store buffer.
+// Arg0: the address of a field being stored into
+DEFINE_LEAF_RUNTIME_ENTRY(StoreBuffer, 1) {
+ ASSERT(args.Count() == kStoreBufferRuntimeEntry.argument_count());
+ uword ptr = reinterpret_cast<uword>(args.At(0));
+ isolate->store_buffer()->AddPointer(ptr);
+ return Smi::New(0); // Just an arbitrary RawObject* value.
+}
+
} // namespace dart
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698