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

Unified Diff: vm/flow_graph_compiler_x64.cc

Issue 11266022: - Do not pre-resolve static calls. This makes it easier to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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 | « vm/flow_graph_compiler_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_compiler_x64.cc
===================================================================
--- vm/flow_graph_compiler_x64.cc (revision 14042)
+++ vm/flow_graph_compiler_x64.cc (working copy)
@@ -1112,22 +1112,13 @@
LocationSummary* locs) {
__ LoadObject(RBX, function);
__ LoadObject(R10, arguments_descriptor);
- if (function.HasCode()) {
- const Code& code = Code::Handle(function.CurrentCode());
- ExternalLabel target_label(function.ToFullyQualifiedCString(),
- code.EntryPoint());
- GenerateDartCall(deopt_id,
- token_pos,
- &target_label,
- PcDescriptors::kFuncCall,
- locs);
- } else {
- GenerateDartCall(deopt_id,
- token_pos,
- &StubCode::CallStaticFunctionLabel(),
- PcDescriptors::kFuncCall,
- locs);
- }
+ // Do not use the code from the function, but let the code be patched so that
+ // we can record the outgoing edges to other code.
+ GenerateDartCall(deopt_id,
+ token_pos,
+ &StubCode::CallStaticFunctionLabel(),
+ PcDescriptors::kFuncCall,
+ locs);
__ Drop(argument_count);
}
« no previous file with comments | « vm/flow_graph_compiler_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698