| Index: runtime/vm/flow_graph_compiler.cc
 | 
| diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
 | 
| index 29c2fe05e5adcc1c4c609fdbe4617d13b65bffb0..4509ea81b026d1deaa40d7f2b60b1f41d39bf4b9 100644
 | 
| --- a/runtime/vm/flow_graph_compiler.cc
 | 
| +++ b/runtime/vm/flow_graph_compiler.cc
 | 
| @@ -141,8 +141,12 @@ void FlowGraphCompiler::Bailout(const char* reason) {
 | 
|  
 | 
|  
 | 
|  intptr_t FlowGraphCompiler::StackSize() const {
 | 
| -  return parsed_function_.stack_local_count() +
 | 
| -      parsed_function_.copied_parameter_count();
 | 
| +  if (is_ssa_) {
 | 
| +    return block_order_[0]->AsGraphEntry()->spill_slot_count();
 | 
| +  } else {
 | 
| +    return parsed_function_.stack_local_count() +
 | 
| +        parsed_function_.copied_parameter_count();
 | 
| +  }
 | 
|  }
 | 
|  
 | 
|  
 | 
| 
 |