Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 39dd9fbef915cd8fc9d866af39003a9b0cab135f..0ed44b143576db31eaf0e53fc9e07d24b3ddc6d2 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -537,7 +537,8 @@ |
continue; |
} else { |
// Otherwise generate unoptimized code now. |
- ParseInfo parse_info(script); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, script); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
parse_info.set_literal(literal); |
@@ -924,7 +925,8 @@ |
Isolate* isolate = function->GetIsolate(); |
VMState<COMPILER> state(isolate); |
PostponeInterruptsScope postpone(isolate); |
- ParseInfo parse_info(handle(function->shared())); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
DCHECK(function->shared()->is_compiled()); |
@@ -1057,7 +1059,8 @@ |
return entry; |
} |
- ParseInfo parse_info(handle(function->shared())); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
Handle<Code> result; |
ASSIGN_RETURN_ON_EXCEPTION(isolate, result, GetUnoptimizedCode(&info), Code); |
@@ -1238,7 +1241,8 @@ |
code = isolate->builtins()->InterpreterEntryTrampoline(); |
function->shared()->ReplaceCode(*code); |
} else { |
- ParseInfo parse_info(handle(function->shared())); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
if (!GetUnoptimizedCode(&info).ToHandle(&code)) { |
return false; |
@@ -1262,7 +1266,8 @@ |
DCHECK(AllowCompilation::IsAllowed(isolate)); |
// Start a compilation. |
- ParseInfo parse_info(shared); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, shared); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
info.MarkAsDebug(); |
if (GetUnoptimizedCode(&info).is_null()) { |
@@ -1289,7 +1294,8 @@ |
script->set_shared_function_infos(isolate->heap()->empty_fixed_array()); |
// Start a compilation. |
- ParseInfo parse_info(script); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, script); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
info.MarkAsDebug(); |
@@ -1300,7 +1306,7 @@ |
// Check postconditions on success. |
DCHECK(!isolate->has_pending_exception()); |
infos = LiveEditFunctionTracker::Collect(parse_info.literal(), script, |
- parse_info.zone(), isolate); |
+ &zone, isolate); |
} |
// Restore the original function info list in order to remain side-effect |
@@ -1430,7 +1436,8 @@ |
script->set_compilation_type(Script::COMPILATION_TYPE_EVAL); |
Script::SetEvalOrigin(script, outer_info, eval_position); |
- ParseInfo parse_info(script); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, script); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
parse_info.set_eval(); |
parse_info.set_language_mode(language_mode); |
@@ -1639,7 +1646,8 @@ |
} |
// Compile the function and add it to the cache. |
- ParseInfo parse_info(script); |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
+ ParseInfo parse_info(&zone, script); |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
if (resource_options.IsModule()) parse_info.set_module(); |
if (compile_options != ScriptCompiler::kNoCompileOptions) { |