| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index bdddfd35465f9d781c232b5fb5ab38604ccaf17b..8ac50ccf682327191d2970e5aee56d647bb45f4c 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -421,11 +421,6 @@ MUST_USE_RESULT MaybeHandle<Code> GetUnoptimizedCode(CompilationInfo* info) {
|
| VMState<COMPILER> state(info->isolate());
|
| PostponeInterruptsScope postpone(info->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(info->isolate()));
|
| -
|
| // Parse and update CompilationInfo with the results.
|
| if (!Parser::ParseStatic(info->parse_info())) return MaybeHandle<Code>();
|
| DCHECK_EQ(info->shared_info()->language_mode(),
|
| @@ -1027,11 +1022,6 @@ Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
|
| ParseInfo* parse_info = info->parse_info();
|
| Handle<Script> script = parse_info->script();
|
|
|
| - // 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));
|
| -
|
| // TODO(svenpanne) Obscure place for this, perhaps move to OnBeforeCompile?
|
| FixedArray* array = isolate->native_context()->embedder_data();
|
| script->set_context_data(array->get(v8::Context::kDebugIdIndex));
|
| @@ -1774,12 +1764,6 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
|
| RuntimeCallTimerScope runtimeTimer(isolate, &RuntimeCallStats::CompileCode);
|
| TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileCode");
|
|
|
| - // Create a canonical handle scope if compiling ignition bytecode. This is
|
| - // required by the constant array builder to de-duplicate common objects
|
| - // without dereferencing handles.
|
| - std::unique_ptr<CanonicalHandleScope> canonical;
|
| - if (FLAG_ignition) canonical.reset(new CanonicalHandleScope(info.isolate()));
|
| -
|
| if (lazy) {
|
| info.SetCode(isolate->builtins()->CompileLazy());
|
| } else if (Renumber(info.parse_info()) && GenerateUnoptimizedCode(&info)) {
|
|
|