| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 3466dcf18e58daba82ba1864085f8fc0bb3042f1..20231373d181de78d3df02eedfe6f14f55d2befa 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -7494,7 +7494,9 @@ static bool CompileLazyHelper(CompilationInfo* info,
|
|
|
| bool SharedFunctionInfo::CompileLazy(Handle<SharedFunctionInfo> shared,
|
| ClearExceptionFlag flag) {
|
| - CompilationInfo info(shared);
|
| + Zone zone(shared->GetIsolate());
|
| + CompilationInfo info(shared, &zone);
|
| + ZoneScope scope(&zone, DELETE_ON_EXIT);
|
| return CompileLazyHelper(&info, flag);
|
| }
|
|
|
| @@ -7554,7 +7556,9 @@ bool JSFunction::CompileLazy(Handle<JSFunction> function,
|
| function->ReplaceCode(function->shared()->code());
|
| function->shared()->set_code_age(0);
|
| } else {
|
| - CompilationInfo info(function);
|
| + Zone zone(function->GetIsolate());
|
| + CompilationInfo info(function, &zone);
|
| + ZoneScope scope(&zone, DELETE_ON_EXIT);
|
| result = CompileLazyHelper(&info, flag);
|
| ASSERT(!result || function->is_compiled());
|
| }
|
| @@ -7565,7 +7569,9 @@ bool JSFunction::CompileLazy(Handle<JSFunction> function,
|
| bool JSFunction::CompileOptimized(Handle<JSFunction> function,
|
| int osr_ast_id,
|
| ClearExceptionFlag flag) {
|
| - CompilationInfo info(function);
|
| + Zone zone(function->GetIsolate());
|
| + CompilationInfo info(function, &zone);
|
| + ZoneScope scope(&zone, DELETE_ON_EXIT);
|
| info.SetOptimizing(osr_ast_id);
|
| return CompileLazyHelper(&info, flag);
|
| }
|
|
|