Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index c33421f21351c875568f398533dae3ade9a0fe1d..1a30663acbf009b5bf4e07bcf763928255091e34 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -2454,8 +2454,9 @@ 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, FUNCTION_SCOPE)); |
+ ConstructorBuiltinsAssembler constructor_assembler(assembler->state()); |
+ __ SetAccumulator(constructor_assembler.EmitFastNewFunctionContext( |
+ closure, slots, context, FUNCTION_SCOPE)); |
__ Dispatch(); |
} |
@@ -2466,8 +2467,9 @@ 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)); |
+ ConstructorBuiltinsAssembler constructor_assembler(assembler->state()); |
+ __ SetAccumulator(constructor_assembler.EmitFastNewFunctionContext( |
+ closure, slots, context, EVAL_SCOPE)); |
__ Dispatch(); |
} |