Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 57f54f3ef9aadc38bddf8a848db717314bb149fe..2bb9eafe4ac070242f35c049c14a0dc03ba67393 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -686,20 +686,16 @@ BytecodeGenerator::BytecodeGenerator(CompilationInfo* info) |
InitializeAstVisitor(info->isolate()->stack_guard()->real_climit()); |
} |
-Handle<BytecodeArray> BytecodeGenerator::MakeBytecode(Isolate* isolate) { |
+Handle<BytecodeArray> BytecodeGenerator::FinalizeBytecode(Isolate* isolate) { |
// Create an inner HandleScope to avoid unnecessarily canonicalizing handles |
// created as part of bytecode finalization. |
HandleScope scope(isolate); |
- |
- GenerateBytecode(); |
- FinalizeBytecode(isolate); |
- |
+ AllocateDeferredConstants(); |
if (HasStackOverflow()) return Handle<BytecodeArray>(); |
- |
return scope.CloseAndEscape(builder()->ToBytecodeArray(isolate)); |
} |
-void BytecodeGenerator::FinalizeBytecode(Isolate* isolate) { |
+void BytecodeGenerator::AllocateDeferredConstants() { |
// Build global declaration pair arrays. |
for (GlobalDeclarationsBuilder* globals_builder : global_declarations_) { |
Handle<FixedArray> declarations = |