Index: runtime/vm/flow_graph_compiler_x64.cc |
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc |
index 9d7d3e695d4d21610ca8b4e02cecb6765894ca85..52f8d6452ad0d3508e25b99b78f0e86cc1c03ddf 100644 |
--- a/runtime/vm/flow_graph_compiler_x64.cc |
+++ b/runtime/vm/flow_graph_compiler_x64.cc |
@@ -610,6 +610,15 @@ void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { |
} |
+void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
+ if (is_optimizing()) return; |
+ Definition* defn = instr->AsDefinition(); |
+ if ((defn != NULL) && defn->is_used()) { |
+ __ pushq(defn->locs()->out().reg()); |
+ } |
+} |
+ |
+ |
void FlowGraphCompiler::CopyParameters() { |
__ Comment("Copy parameters"); |
const Function& function = parsed_function().function(); |