| 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 237ccbc1b064b5cf64deb13fb016185a798a738f..a614034c60354d129dd2a83f6678f731a8483c5c 100644
|
| --- a/src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| +++ b/src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| @@ -141,11 +141,6 @@ bool CompilerDispatcherJob::FinalizeParsingOnMainThread() {
|
|
|
| DeferredHandleScope scope(isolate_);
|
| {
|
| - // Create a canonical handle scope before internalizing parsed values if
|
| - // compiling bytecode. This is required for off-thread bytecode generation.
|
| - std::unique_ptr<CanonicalHandleScope> canonical;
|
| - if (FLAG_ignition) canonical.reset(new CanonicalHandleScope(isolate_));
|
| -
|
| Handle<SharedFunctionInfo> shared(function_->shared(), isolate_);
|
| Handle<Script> script(Script::cast(shared->script()), isolate_);
|
|
|
| @@ -176,16 +171,9 @@ bool CompilerDispatcherJob::PrepareToCompileOnMainThread() {
|
| compile_info_.reset(new CompilationInfo(parse_info_.get(), function_));
|
|
|
| DeferredHandleScope scope(isolate_);
|
| - {
|
| - // Create a canonical handle scope before ast numbering if compiling
|
| - // bytecode. This is required for off-thread bytecode generation.
|
| - std::unique_ptr<CanonicalHandleScope> canonical;
|
| - if (FLAG_ignition) canonical.reset(new CanonicalHandleScope(isolate_));
|
| -
|
| - if (Compiler::Analyze(parse_info_.get())) {
|
| - compile_job_.reset(
|
| - Compiler::PrepareUnoptimizedCompilationJob(compile_info_.get()));
|
| - }
|
| + if (Compiler::Analyze(parse_info_.get())) {
|
| + compile_job_.reset(
|
| + Compiler::PrepareUnoptimizedCompilationJob(compile_info_.get()));
|
| }
|
| compile_info_->set_deferred_handles(scope.Detach());
|
|
|
|
|