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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 235013002: Fix polymorphic inlining of method dispatchers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 34963)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -302,7 +302,7 @@
current->AsPolymorphicInstanceCall();
if (!inline_only_recognized_methods ||
instance_call->HasSingleRecognizedTarget() ||
- instance_call->HasSingleDispatcherTarget()) {
+ instance_call->HasOnlyDispatcherTargets()) {
Ivan Posva 2014/04/11 21:12:01 This is not correct. Only checking for dispatcher
Florian Schneider 2014/04/22 00:09:10 Permissive for what?
Ivan Posva 2014/04/24 07:28:47 There is not necessarily only a single recognized
Florian Schneider 2014/04/24 12:00:44 There is no correctness requirement that the call
instance_calls_.Add(InstanceCallInfo(instance_call, graph));
} else {
// Method not inlined because inlining too deep and method
@@ -961,7 +961,7 @@
ASSERT(call->ArgumentCount() > 0);
Function& target = Function::ZoneHandle();
AllocateObjectInstr* alloc =
- call->ArgumentAt(0)->AsAllocateObject();
+ call->ArgumentAt(0)->OriginalDefinition()->AsAllocateObject();
if ((alloc != NULL) && !alloc->closure_function().IsNull()) {
target ^= alloc->closure_function().raw();
ASSERT(target.signature_class() == alloc->cls().raw());
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698