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); |