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 2f1a412ba94b8e491f2f3fec419c8c8bae93603d..7668eeac94e8e6c09b9689024924e70bc8a5f824 100644 |
--- a/runtime/vm/flow_graph_compiler_x64.cc |
+++ b/runtime/vm/flow_graph_compiler_x64.cc |
@@ -48,9 +48,10 @@ void DeoptimizationStub::GenerateCode(FlowGraphCompiler* compiler) { |
if (loc.IsInvalid()) { |
ASSERT(values[i]->IsConstant()); |
__ PushObject(values[i]->AsConstant()->value()); |
- } else { |
- ASSERT(loc.IsRegister()); |
+ } else if (loc.IsRegister()) { |
__ pushq(loc.reg()); |
+ } else { |
+ compiler->Bailout("unsupported deoptimization state"); |
} |
} |
} |