Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 7e7d6d5d585759f01f74b5f9cfef0b5f979669d8..dfa1289c02c5296ed9f06f38b20c696120510984 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7636,7 +7636,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyStubFailure) { |
ASSERT(args.length() == 0); |
Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate); |
ASSERT(isolate->heap()->IsAllocationAllowed()); |
- ASSERT(deoptimizer->compiled_code_kind() == Code::COMPILED_STUB); |
delete deoptimizer; |
return isolate->heap()->undefined_value(); |
} |
@@ -7651,7 +7650,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyDeoptimized) { |
Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate); |
ASSERT(isolate->heap()->IsAllocationAllowed()); |
- ASSERT(deoptimizer->compiled_code_kind() != Code::COMPILED_STUB); |
+ ASSERT(deoptimizer->compiled_code_kind() == Code::OPTIMIZED_FUNCTION); |
// Make sure to materialize objects before causing any allocation. |
JavaScriptFrameIterator it(isolate); |