Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d5cd2a823a66448510a33ef8693c65979b4105ca..9f6f55d594e595a6b23d15f9163b971759249875 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8468,13 +8468,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; |
} |