| Index: src/runtime/runtime-compiler.cc
|
| diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
|
| index a60252717573be68b9cc9b8d9d535863da0aeea4..13b54cc60086a2760e61bba0ed73f7cd5a4fa58c 100644
|
| --- a/src/runtime/runtime-compiler.cc
|
| +++ b/src/runtime/runtime-compiler.cc
|
| @@ -35,8 +35,8 @@ 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->IsJavaScriptCode());
|
| +
|
| function->ReplaceCode(*code);
|
| return *code;
|
| }
|
|
|