Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 7f3089ba25b39b176c329d360a91de245269f189..0b9ad37ca9a01c276a46d9f72bca843ef3d8110a 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -363,8 +363,11 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) { |
return *this; |
} |
-BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext(Register object) { |
- Output(Bytecode::kCreateWithContext, RegisterOperand(object)); |
+BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext( |
+ Register object, Handle<ScopeInfo> scope_info) { |
+ size_t scope_info_index = GetConstantPoolEntry(scope_info); |
+ Output(Bytecode::kCreateWithContext, RegisterOperand(object), |
+ UnsignedOperand(scope_info_index)); |
return *this; |
} |