| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 761c33755ea730ddf3c77233c5308149a196fa44..54ea359c6598631674cb232499c4defd9409ba21 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1033,6 +1033,12 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
|
| return Handle<Code>(function->shared()->code());
|
| }
|
|
|
| + if (function->shared()->HasBytecodeArray()) {
|
| + Handle<Code> entry = isolate->builtins()->InterpreterEntryTrampoline();
|
| + function->shared()->ReplaceCode(*entry);
|
| + return entry;
|
| + }
|
| +
|
| Zone zone(isolate->allocator());
|
| ParseInfo parse_info(&zone, function);
|
| CompilationInfo info(&parse_info, function);
|
|
|