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

Unified Diff: runtime/vm/code_generator.cc

Issue 10910224: Using type feedback, eliminate store barriers for indexed stores. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/code_generator.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 12265)
+++ runtime/vm/code_generator.cc (working copy)
@@ -980,6 +980,29 @@
}
+// Handles inline cache misses by updating the IC data array of the call
+// site.
+// Arg0: Receiver object.
+// Arg1: Argument after receiver.
+// Arg2: Second argument after receiver.
+// Returns: target function with compiled code or null.
+// Modifies the instance call to hold the updated IC data array.
+DEFINE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs, 3) {
+ ASSERT(arguments.Count() ==
+ kInlineCacheMissHandlerThreeArgsRuntimeEntry.argument_count());
+ const Instance& receiver = Instance::CheckedHandle(arguments.At(0));
+ const Instance& arg1 = Instance::CheckedHandle(arguments.At(1));
+ const Instance& arg2 = Instance::CheckedHandle(arguments.At(2));
+ GrowableArray<const Instance*> args(3);
+ args.Add(&receiver);
+ args.Add(&arg1);
+ args.Add(&arg2);
+ const Function& result =
+ Function::Handle(InlineCacheMissHandler(isolate, args));
+ arguments.SetReturn(result);
+}
+
+
static RawFunction* LookupDynamicFunction(Isolate* isolate,
const Class& in_cls,
const String& name) {
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698