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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 10880079: Emit deoptimization information at static calls (preparation for full deoptimization). … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 11464)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -26,6 +26,8 @@
void DeoptimizationStub::GenerateCode(FlowGraphCompiler* compiler,
intptr_t stub_ix) {
+ // Calls do not need stubs, they share a deoptimization trampoline.
+ if (reason_ == kDeoptAtCall) return;
Assembler* assem = compiler->assembler();
#define __ assem->
__ Comment("Deopt stub for id %d", deopt_id_);
@@ -1062,6 +1064,9 @@
AddCurrentDescriptor(PcDescriptors::kFuncCall, deopt_id, token_pos,
try_index);
RecordSafepoint(locs);
+ if (is_optimizing()) {
+ AddDeoptIndexAtCall(deopt_id, token_pos);
+ }
__ Drop(argument_count);
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698