Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 7fd6e23a585c3e9a5b10ccd7f5118e60d1b5d162..7ad2e9885cfda6ed82c5045279852430f957bc02 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -350,6 +350,11 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) { |
return *this; |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext(Register object) { |
+ Output(Bytecode::kCreateWithContext, RegisterOperand(object)); |
+ return *this; |
+} |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments( |
CreateArgumentsType type) { |
// TODO(rmcilroy): Consider passing the type as a bytecode operand rather |