| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index a6a600cf7bfef0edded71c736f06b7416cd7701c..92667730e6ad09da37a938a257c74f1d7feeaa79 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -867,7 +867,7 @@ MaybeHandle<Code> GetBaselineCode(Handle<JSFunction> function) {
|
| VMState<COMPILER> state(isolate);
|
| PostponeInterruptsScope postpone(isolate);
|
| Zone zone(isolate->allocator());
|
| - ParseInfo parse_info(&zone, function);
|
| + ParseInfo parse_info(&zone, handle(function->shared()));
|
| CompilationInfo info(&parse_info, function);
|
|
|
| // Reset profiler ticks, function is no longer considered hot.
|
| @@ -988,7 +988,7 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
|
| }
|
|
|
| Zone zone(isolate->allocator());
|
| - ParseInfo parse_info(&zone, function);
|
| + ParseInfo parse_info(&zone, handle(function->shared()));
|
| CompilationInfo info(&parse_info, function);
|
| Handle<Code> result;
|
| ASSIGN_RETURN_ON_EXCEPTION(isolate, result, GetUnoptimizedCode(&info), Code);
|
| @@ -1174,7 +1174,7 @@ bool Compiler::CompileOptimized(Handle<JSFunction> function,
|
| function->shared()->ReplaceCode(*code);
|
| } else {
|
| Zone zone(isolate->allocator());
|
| - ParseInfo parse_info(&zone, function);
|
| + ParseInfo parse_info(&zone, handle(function->shared()));
|
| CompilationInfo info(&parse_info, function);
|
| if (!GetUnoptimizedCode(&info).ToHandle(&code)) {
|
| return false;
|
| @@ -1199,7 +1199,7 @@ bool Compiler::CompileDebugCode(Handle<JSFunction> function) {
|
|
|
| // Start a compilation.
|
| Zone zone(isolate->allocator());
|
| - ParseInfo parse_info(&zone, function);
|
| + ParseInfo parse_info(&zone, handle(function->shared()));
|
| CompilationInfo info(&parse_info, Handle<JSFunction>::null());
|
| info.MarkAsDebug();
|
| if (GetUnoptimizedCode(&info).is_null()) {
|
|
|