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

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

Issue 2585133002: [builtins] move PromiseBuiltinsAssembler to it's own header file (Closed)
Patch Set: Created 4 years 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.h ('k') | src/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-promise.cc
diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise.cc
index 9b1211bf205e994e203f3d36a36d86791fd6ff6b..0e8fb6925b879f4bfd8924b201b8c6e357b35ebe 100644
--- a/src/builtins/builtins-promise.cc
+++ b/src/builtins/builtins-promise.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-promise.h"
#include "src/builtins/builtins-utils.h"
#include "src/builtins/builtins.h"
#include "src/code-factory.h"
@@ -15,36 +16,6 @@ typedef compiler::Node Node;
typedef CodeStubAssembler::ParameterMode ParameterMode;
typedef compiler::CodeAssemblerState CodeAssemblerState;
-class PromiseBuiltinsAssembler : public CodeStubAssembler {
- public:
- explicit PromiseBuiltinsAssembler(CodeAssemblerState* state)
- : CodeStubAssembler(state) {}
-
- protected:
- Node* ThrowIfNotJSReceiver(Node* context, Node* value,
- MessageTemplate::Template msg_template);
-
- Node* SpeciesConstructor(Node* context, Node* object,
- Node* default_constructor);
-
- Node* PromiseHasHandler(Node* promise);
-
- void PromiseSetHasHandler(Node* promise);
-
- void AppendPromiseCallback(int offset, compiler::Node* promise,
- compiler::Node* value);
-
- Node* InternalPerformPromiseThen(Node* context, Node* promise,
- Node* on_resolve, Node* on_reject,
- Node* deferred);
-
- void InternalResolvePromise(Node* context, Node* promise, Node* result,
- Label* out);
-
- void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified,
- Label* if_ismodified);
-};
-
Node* PromiseBuiltinsAssembler::ThrowIfNotJSReceiver(
Node* context, Node* value, MessageTemplate::Template msg_template) {
Label out(this), throw_exception(this, Label::kDeferred);
« no previous file with comments | « src/builtins/builtins-promise.h ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698