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

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
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 12265)
+++ runtime/vm/code_generator.cc (working copy)
@@ -980,6 +980,22 @@
}
+DEFINE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs, 3) {
+ ASSERT(arguments.Count() ==
+ kInlineCacheMissHandlerThreeArgsRuntimeEntry.argument_count());
+ const Instance& receiver = Instance::CheckedHandle(arguments.At(0));
+ const Instance& other = Instance::CheckedHandle(arguments.At(1));
Vyacheslav Egorov (Google) 2012/09/12 15:38:09 why no first and second or arg1, arg2 ?
srdjan 2012/09/12 15:45:25 Done.
+ const Instance& other_other = Instance::CheckedHandle(arguments.At(2));
+ GrowableArray<const Instance*> args(3);
+ args.Add(&receiver);
+ args.Add(&other);
+ args.Add(&other_other);
+ const Function& result =
+ Function::Handle(InlineCacheMissHandler(isolate, args));
+ arguments.SetReturn(result);
+}
+
+
static RawFunction* LookupDynamicFunction(Isolate* isolate,
const Class& in_cls,
const String& name) {

Powered by Google App Engine
This is Rietveld 408576698