Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d3baaa440cf7c49a64d1d3a5baeefa0eac4e1162..1875588825ac4144da38d399879fd6b62547285c 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7974,7 +7974,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyDeoptimized) { |
RUNTIME_ASSERT(frame->function()->IsJSFunction()); |
Handle<JSFunction> function(JSFunction::cast(frame->function()), isolate); |
Handle<Code> optimized_code(function->code()); |
- RUNTIME_ASSERT(type != Deoptimizer::EAGER || function->IsOptimized()); |
+ RUNTIME_ASSERT((type != Deoptimizer::EAGER && |
+ type != Deoptimizer::SOFT) || function->IsOptimized()); |
// Avoid doing too much work when running with --always-opt and keep |
// the optimized code around. |