Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index b6716b344291a8065044976bacdeb6cd279be570..994792724bb6ce58113ec3af45ce2225d7d012ad 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -2419,8 +2419,20 @@ void Interpreter::DoCreateFunctionContext(InterpreterAssembler* assembler) { |
Node* closure = __ LoadRegister(Register::function_closure()); |
Node* slots = __ BytecodeOperandUImm(0); |
Node* context = __ GetContext(); |
- __ SetAccumulator( |
- FastNewFunctionContextStub::Generate(assembler, closure, slots, context)); |
+ __ SetAccumulator(FastNewFunctionContextStub::Generate( |
+ assembler, closure, slots, context, FUNCTION_SCOPE)); |
+ __ Dispatch(); |
+} |
+ |
+// CreateEvalContext <slots> |
+// |
+// Creates a new context with number of |slots| for an eval closure. |
+void Interpreter::DoCreateEvalContext(InterpreterAssembler* assembler) { |
+ Node* closure = __ LoadRegister(Register::function_closure()); |
+ Node* slots = __ BytecodeOperandUImm(0); |
+ Node* context = __ GetContext(); |
+ __ SetAccumulator(FastNewFunctionContextStub::Generate( |
+ assembler, closure, slots, context, EVAL_SCOPE)); |
__ Dispatch(); |
} |