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

Unified Diff: vm/flow_graph_compiler_ia32.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 | « no previous file | vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_compiler_ia32.cc
===================================================================
--- vm/flow_graph_compiler_ia32.cc (revision 14042)
+++ vm/flow_graph_compiler_ia32.cc (working copy)
@@ -1107,22 +1107,13 @@
LocationSummary* locs) {
__ LoadObject(ECX, function);
__ LoadObject(EDX, 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 | « no previous file | vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698