| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ad5e5e99554f0553436f871357672e4ca8688ecd..1ae567fee8e69dad398db5b9b8cae4028a1fa4d9 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1277,6 +1277,9 @@ bool Compiler::CompileOptimized(Handle<JSFunction> function,
|
| DCHECK(!isolate->has_pending_exception());
|
| if (function->shared()->is_compiled()) {
|
| code = handle(function->shared()->code(), isolate);
|
| + } else if (function->shared()->HasBytecodeArray()) {
|
| + code = isolate->builtins()->InterpreterEntryTrampoline();
|
| + function->shared()->ReplaceCode(*code);
|
| } else {
|
| Zone zone(isolate->allocator());
|
| ParseInfo parse_info(&zone, function);
|
|
|