Chromium Code Reviews| Index: runtime/vm/flow_graph.cc |
| diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc |
| index 84b9e483e42517457bd48e6b7bce6e65207ac959..abe5e7c6a579b3660e83b36c336a946ea53cebbc 100644 |
| --- a/runtime/vm/flow_graph.cc |
| +++ b/runtime/vm/flow_graph.cc |
| @@ -1018,7 +1018,8 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis, |
| for (intptr_t i = parameter_count(); i < variable_count(); ++i) { |
| if (i == CurrentContextEnvIndex()) { |
| if (function().IsClosureFunction()) { |
| - CurrentContextInstr* context = new CurrentContextInstr(); |
| + CurrentContextInstr* context = |
| + new CurrentContextInstr(Thread::Current()->GetNextDeoptId()); |
|
Vyacheslav Egorov (Google)
2017/05/23 12:00:01
kNoDeoptId - it can't deopt anyway.
|
| context->set_ssa_temp_index(alloc_ssa_temp_index()); // New SSA temp. |
| AddToInitialDefinitions(context); |
| env.Add(context); |