Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: src/builtins/builtins-promise-gen.cc

Issue 2752143004: [refactor] Separate generated builtins and C++ builtins into separate files (Closed)
Patch Set: tentative gcmole fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/builtins/builtins-regexp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/builtins/builtins-regexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698