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

Side by Side Diff: src/builtins/builtins-promise.h

Issue 2592933004: [promises] Move Promise.resolve to TF (Closed)
Patch Set: throw correct typerror Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-stub-assembler.h" 5 #include "src/code-stub-assembler.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 typedef compiler::Node Node; 10 typedef compiler::Node Node;
11 typedef CodeStubAssembler::ParameterMode ParameterMode; 11 typedef CodeStubAssembler::ParameterMode ParameterMode;
12 typedef compiler::CodeAssemblerState CodeAssemblerState; 12 typedef compiler::CodeAssemblerState CodeAssemblerState;
13 13
14 class PromiseBuiltinsAssembler : public CodeStubAssembler { 14 class PromiseBuiltinsAssembler : public CodeStubAssembler {
15 public: 15 public:
16 explicit PromiseBuiltinsAssembler(CodeAssemblerState* state) 16 explicit PromiseBuiltinsAssembler(CodeAssemblerState* state)
17 : CodeStubAssembler(state) {} 17 : CodeStubAssembler(state) {}
18 18
19 Node* ThrowIfNotJSReceiver(Node* context, Node* value, 19 Node* ThrowIfNotJSReceiver(Node* context, Node* value,
20 MessageTemplate::Template msg_template); 20 MessageTemplate::Template msg_template,
21 const char* method_name = NULL);
21 22
22 Node* SpeciesConstructor(Node* context, Node* object, 23 Node* SpeciesConstructor(Node* context, Node* object,
23 Node* default_constructor); 24 Node* default_constructor);
24 25
25 Node* PromiseHasHandler(Node* promise); 26 Node* PromiseHasHandler(Node* promise);
26 27
27 void PromiseSetHasHandler(Node* promise); 28 void PromiseSetHasHandler(Node* promise);
28 29
29 void AppendPromiseCallback(int offset, compiler::Node* promise, 30 void AppendPromiseCallback(int offset, compiler::Node* promise,
30 compiler::Node* value); 31 compiler::Node* value);
(...skipping 12 matching lines...) Expand all
43 44
44 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, 45 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event,
45 Node* native_context); 46 Node* native_context);
46 47
47 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( 48 std::pair<Node*, Node*> CreatePromiseResolvingFunctions(
48 Node* promise, Node* native_context, Node* promise_context); 49 Node* promise, Node* native_context, Node* promise_context);
49 }; 50 };
50 51
51 } // namespace internal 52 } // namespace internal
52 } // namespace v8 53 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698