Chromium Code Reviews| Index: runtime/vm/flow_graph_builder.cc |
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
| index b2924a52924589dff90c835cbd6bfa5465bccc91..43f164360396104b7147d2b0cf63ac82a0308349 100644 |
| --- a/runtime/vm/flow_graph_builder.cc |
| +++ b/runtime/vm/flow_graph_builder.cc |
| @@ -2636,7 +2636,9 @@ void FlowGraphBuilder::RenameRecursive(BlockEntryInstr* block_entry, |
| // TODO(fschneider): Currently each instruction gets a full copy of the |
| // environment. This should be optimized: Only instructions that can |
| // deoptimize should have uses of the environment values. |
| - current->set_env(new Environment(*env, fixed_parameter_count)); |
| + if (!current->IsReturn()) { |
|
Florian Schneider
2012/07/31 15:31:59
This is not part of the fix. I'd remove it.
Vyacheslav Egorov (Google)
2012/07/31 16:18:49
Done.
|
| + current->set_env(new Environment(*env, fixed_parameter_count)); |
| + } |
| // 2a. Handle uses: |
| // Update expression stack environment for each use. |