Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index ca2723b4c238ad3d11f74d19b67e4dd52a02091d..bb13081d3e90d9aeb8fa5372c4e13b77ce91b385 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -687,12 +687,9 @@ BytecodeGenerator::BytecodeGenerator(CompilationInfo* info) |
} |
Handle<BytecodeArray> BytecodeGenerator::FinalizeBytecode(Isolate* isolate) { |
- // Create an inner HandleScope to avoid unnecessarily canonicalizing handles |
- // created as part of bytecode finalization. |
- HandleScope scope(isolate); |
AllocateDeferredConstants(); |
if (HasStackOverflow()) return Handle<BytecodeArray>(); |
- return scope.CloseAndEscape(builder()->ToBytecodeArray(isolate)); |
+ return builder()->ToBytecodeArray(isolate); |
} |
void BytecodeGenerator::AllocateDeferredConstants() { |