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

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

Issue 2611083002: [promises] Add AllocatePromiseResolveThenableJobInfo to TF (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | src/builtins/builtins-promise.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
(...skipping 12 matching lines...) Expand all
23 // hook. 23 // hook.
24 Node* AllocateAndInitJSPromise(Node* context); 24 Node* AllocateAndInitJSPromise(Node* context);
25 // This uses the given parent as the parent promise for the promise 25 // This uses the given parent as the parent promise for the promise
26 // init hook. 26 // init hook.
27 Node* AllocateAndInitJSPromise(Node* context, Node* parent); 27 Node* AllocateAndInitJSPromise(Node* context, Node* parent);
28 28
29 // This allocates and initializes a promise with the given state and 29 // This allocates and initializes a promise with the given state and
30 // fields. 30 // fields.
31 Node* AllocateAndSetJSPromise(Node* context, Node* status, Node* result); 31 Node* AllocateAndSetJSPromise(Node* context, Node* status, Node* result);
32 32
33 Node* AllocatePromiseResolveThenableJobInfo(Node* result, Node* then,
34 Node* resolve, Node* reject,
35 Node* context);
36
33 Node* ThrowIfNotJSReceiver(Node* context, Node* value, 37 Node* ThrowIfNotJSReceiver(Node* context, Node* value,
34 MessageTemplate::Template msg_template, 38 MessageTemplate::Template msg_template,
35 const char* method_name = nullptr); 39 const char* method_name = nullptr);
36 40
37 Node* SpeciesConstructor(Node* context, Node* object, 41 Node* SpeciesConstructor(Node* context, Node* object,
38 Node* default_constructor); 42 Node* default_constructor);
39 43
40 Node* PromiseHasHandler(Node* promise); 44 Node* PromiseHasHandler(Node* promise);
41 45
42 void PromiseSetHasHandler(Node* promise); 46 void PromiseSetHasHandler(Node* promise);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 83
80 protected: 84 protected:
81 void PromiseInit(Node* promise); 85 void PromiseInit(Node* promise);
82 86
83 private: 87 private:
84 Node* AllocateJSPromise(Node* context); 88 Node* AllocateJSPromise(Node* context);
85 }; 89 };
86 90
87 } // namespace internal 91 } // namespace internal
88 } // namespace v8 92 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698