Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index bcab141cc7036730c5062a937c2ee6fa5ddd89bd..2191268441c92687715ff86cbfecd9774b770ebc 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "src/builtins/builtins-constructor.h" |
#include "src/builtins/builtins-utils.h" |
#include "src/builtins/builtins.h" |
#include "src/code-factory.h" |
@@ -786,9 +787,9 @@ TF_BUILTIN(RegExpConstructor, RegExpBuiltinsAssembler) { |
Bind(&allocate_generic); |
{ |
- Callable fastnewobject_callable = CodeFactory::FastNewObject(isolate); |
- Node* const regexp = CallStub(fastnewobject_callable, context, |
- regexp_function, var_new_target.value()); |
+ ConstructorBuiltinsAssembler constructor_assembler(this->state()); |
+ Node* const regexp = constructor_assembler.EmitFastNewObject( |
+ context, regexp_function, var_new_target.value()); |
var_regexp.Bind(regexp); |
Goto(&next); |
} |