Index: src/compiler-dispatcher/compiler-dispatcher-job.cc |
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.cc b/src/compiler-dispatcher/compiler-dispatcher-job.cc |
index b2d1de962e8a1e446c5d0a79e3b80eb1182b7a0c..7e4472f7a4157cd96150a33a527657ac8b79d816 100644 |
--- a/src/compiler-dispatcher/compiler-dispatcher-job.cc |
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.cc |
@@ -291,8 +291,9 @@ bool CompilerDispatcherJob::PrepareToCompileOnMainThread() { |
static_cast<void*>(this)); |
} |
- compile_info_.reset( |
- new CompilationInfo(parse_info_.get(), Handle<JSFunction>::null())); |
+ compile_zone_.reset(new Zone(isolate_->allocator(), ZONE_NAME)); |
+ compile_info_.reset(new CompilationInfo( |
+ compile_zone_.get(), parse_info_.get(), Handle<JSFunction>::null())); |
DeferredHandleScope scope(isolate_); |
if (Compiler::Analyze(parse_info_.get())) { |
@@ -352,6 +353,7 @@ bool CompilerDispatcherJob::FinalizeCompilingOnMainThread() { |
compile_job_.reset(); |
compile_info_.reset(); |
+ compile_zone_.reset(); |
handles_from_parsing_.reset(); |
parse_info_.reset(); |
@@ -368,6 +370,7 @@ void CompilerDispatcherJob::ResetOnMainThread() { |
compile_job_.reset(); |
compile_info_.reset(); |
+ compile_zone_.reset(); |
parser_.reset(); |
unicode_cache_.reset(); |
character_stream_.reset(); |