Index: src/runtime/runtime-compiler.cc |
diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc |
index a60252717573be68b9cc9b8d9d535863da0aeea4..a8de13136ab6078a034b4d02abb0a3a0626508c8 100644 |
--- a/src/runtime/runtime-compiler.cc |
+++ b/src/runtime/runtime-compiler.cc |
@@ -35,8 +35,11 @@ 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); |
+ DCHECK( |
+ code->kind() == Code::FUNCTION || |
Michael Starzinger
2015/08/18 08:17:16
suggestion: Do you think it makes sense to add a C
|
+ code->kind() == Code::OPTIMIZED_FUNCTION || |
+ code.is_identical_to(isolate->builtins()->InterpreterEntryTrampoline())); |
+ |
function->ReplaceCode(*code); |
return *code; |
} |