Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 89595062431b4519770d14edd533be85960dbdf7..c33421f21351c875568f398533dae3ade9a0fe1d 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -8,6 +8,7 @@ |
#include <memory> |
#include "src/ast/prettyprinter.h" |
+#include "src/builtins/builtins-constructor.h" |
#include "src/code-factory.h" |
#include "src/compilation-info.h" |
#include "src/compiler.h" |
@@ -2397,7 +2398,8 @@ void Interpreter::DoCreateClosure(InterpreterAssembler* assembler) { |
Label call_runtime(assembler, Label::kDeferred); |
__ GotoUnless(__ IsSetWord32<CreateClosureFlags::FastNewClosureBit>(flags), |
&call_runtime); |
- __ SetAccumulator(FastNewClosureStub::Generate(assembler, shared, context)); |
+ ConstructorBuiltinsAssembler constructor_assembler(assembler->state()); |
+ __ SetAccumulator(constructor_assembler.EmitFastNewClosure(shared, context)); |
__ Dispatch(); |
__ Bind(&call_runtime); |