Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index 33e945271a680beef05dd9f93d6439a823099288..b38570c6798d60c32f2ccd624cfac51934740b16 100644 |
| --- a/src/interpreter/interpreter.cc |
| +++ b/src/interpreter/interpreter.cc |
| @@ -1717,6 +1717,18 @@ void Interpreter::DoCreateClosure(InterpreterAssembler* assembler) { |
| } |
| } |
| +// CreateContext |
|
rmcilroy
2016/08/03 10:58:14
Add operands here: <slots> and mention in descript
klaasb
2016/08/03 12:28:16
Done.
|
| +// |
| +// Creates a new context for the function closure in the accumulator. |
| +void Interpreter::DoCreateFunctionContext(InterpreterAssembler* assembler) { |
| + Node* closure = __ LoadRegister(Register::function_closure()); |
| + Node* slots = __ BytecodeOperandImm(0); |
| + Node* context = __ GetContext(); |
| + __ SetAccumulator( |
| + FastNewFunctionContextStub::Generate(assembler, closure, slots, context)); |
| + __ Dispatch(); |
| +} |
| + |
| // CreateMappedArguments |
| // |
| // Creates a new mapped arguments object. |