Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 743086ff7ab2908da2d46fa031525cc046982b49..45dd9a4cd5128abfdf2e42c1d5ba5fc12d5684a0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8492,13 +8492,9 @@ RUNTIME_FUNCTION(Runtime_CompileLazy) { |
Handle<Code> code; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, code, |
Compiler::GetLazyCode(function)); |
+ DCHECK(code->kind() == Code::FUNCTION || |
+ code->kind() == Code::OPTIMIZED_FUNCTION); |
function->ReplaceCode(*code); |
- |
- // All done. Return the compiled code. |
- DCHECK(function->is_compiled()); |
- DCHECK(function->code()->kind() == Code::FUNCTION || |
- (FLAG_always_opt && |
- function->code()->kind() == Code::OPTIMIZED_FUNCTION)); |
return *code; |
} |