| Index: src/interpreter/interpreter.cc
|
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
|
| index 33e945271a680beef05dd9f93d6439a823099288..046513700e56b48a381585499b6b54e4126fd7c9 100644
|
| --- a/src/interpreter/interpreter.cc
|
| +++ b/src/interpreter/interpreter.cc
|
| @@ -1717,6 +1717,18 @@ void Interpreter::DoCreateClosure(InterpreterAssembler* assembler) {
|
| }
|
| }
|
|
|
| +// CreateFunctionContext <slots>
|
| +//
|
| +// Creates a new context with number of |slots| for the function closure.
|
| +void Interpreter::DoCreateFunctionContext(InterpreterAssembler* assembler) {
|
| + Node* closure = __ LoadRegister(Register::function_closure());
|
| + Node* slots = __ BytecodeOperandIdx(0);
|
| + Node* context = __ GetContext();
|
| + __ SetAccumulator(
|
| + FastNewFunctionContextStub::Generate(assembler, closure, slots, context));
|
| + __ Dispatch();
|
| +}
|
| +
|
| // CreateMappedArguments
|
| //
|
| // Creates a new mapped arguments object.
|
|
|