| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index cc5cd00bb3664c187f42010c9bf937a66994836a..3fafc8e8ef78da67c49c362395e71f8ac4c9b2fb 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -534,7 +534,9 @@ PipelineStatistics* CreatePipelineStatistics(CompilationInfo* info,
|
| int pos = info->shared_info()->start_position();
|
| json_of << "{\"function\":\"" << function_name.get()
|
| << "\", \"sourcePosition\":" << pos << ", \"source\":\"";
|
| - if (!script->IsUndefined() && !script->source()->IsUndefined()) {
|
| + Isolate* isolate = script->GetIsolate();
|
| + if (!script->IsUndefined(isolate) &&
|
| + !script->source()->IsUndefined(isolate)) {
|
| DisallowHeapAllocation no_allocation;
|
| int start = info->shared_info()->start_position();
|
| int len = info->shared_info()->end_position() - start;
|
|
|