Index: src/builtins/builtins-promise-gen.cc |
diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise-gen.cc |
similarity index 99% |
rename from src/builtins/builtins-promise.cc |
rename to src/builtins/builtins-promise-gen.cc |
index 285850c2bc8baba5acfa24ac0b5961777cd3c110..87a7a62a84af354ecb396b2adb550768e08c8788 100644 |
--- a/src/builtins/builtins-promise.cc |
+++ b/src/builtins/builtins-promise-gen.cc |
@@ -2,9 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// 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-promise.h" |
+#include "src/builtins/builtins-utils-gen.h" |
#include "src/builtins/builtins.h" |
#include "src/code-factory.h" |
#include "src/code-stub-assembler.h" |
@@ -13,6 +13,8 @@ |
namespace v8 { |
namespace internal { |
+using compiler::Node; |
+ |
Node* PromiseBuiltinsAssembler::AllocateJSPromise(Node* context) { |
Node* const native_context = LoadNativeContext(context); |
Node* const promise_fun = |
@@ -410,7 +412,6 @@ Node* PromiseBuiltinsAssembler::InternalPerformPromiseThen( |
Node* context, Node* promise, Node* on_resolve, Node* on_reject, |
Node* deferred_promise, Node* deferred_on_resolve, |
Node* deferred_on_reject) { |
- |
Variable var_on_resolve(this, MachineRepresentation::kTagged), |
var_on_reject(this, MachineRepresentation::kTagged); |