Index: src/builtins/builtins-promise.cc |
diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise.cc |
index 88730bf43629a45e94f779980e41d34574dea52e..9a6a8fe275a0783e8c253313b982898db83a50de 100644 |
--- a/src/builtins/builtins-promise.cc |
+++ b/src/builtins/builtins-promise.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "src/builtins/builtins-promise.h" |
+#include "src/builtins/builtins-constructor.h" |
#include "src/builtins/builtins-utils.h" |
#include "src/builtins/builtins.h" |
#include "src/code-factory.h" |
@@ -742,9 +743,9 @@ TF_BUILTIN(PromiseConstructor, PromiseBuiltinsAssembler) { |
Bind(&if_targetismodified); |
{ |
- Callable fast_new_object_stub = CodeFactory::FastNewObject(isolate); |
- Node* const instance = |
- CallStub(fast_new_object_stub, context, promise_fun, new_target); |
+ ConstructorBuiltinsAssembler constructor_assembler(this->state()); |
+ Node* const instance = constructor_assembler.EmitFastNewObject( |
+ context, promise_fun, new_target); |
var_result.Bind(instance); |
Goto(&init); |