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

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

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap 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 | « src/builtins/builtins-function.cc ('k') | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve, 51 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve,
52 Node* on_reject); 52 Node* on_reject);
53 53
54 Node* InternalPerformPromiseThen(Node* context, Node* promise, 54 Node* InternalPerformPromiseThen(Node* context, Node* promise,
55 Node* on_resolve, Node* on_reject, 55 Node* on_resolve, Node* on_reject,
56 Node* deferred_promise, 56 Node* deferred_promise,
57 Node* deferred_on_resolve, 57 Node* deferred_on_resolve,
58 Node* deferred_on_reject); 58 Node* deferred_on_reject);
59 59
60 void FastPerformPromiseThen(Node* context, Node* promise,
61 Node* on_resolve = nullptr,
62 Node* on_reject = nullptr,
63 Node* result_promise = nullptr);
64
60 void InternalResolvePromise(Node* context, Node* promise, Node* result); 65 void InternalResolvePromise(Node* context, Node* promise, Node* result);
61 66
62 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, 67 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified,
63 Label* if_ismodified); 68 Label* if_ismodified);
64 69
65 void BranchIfFastPath(Node* native_context, Node* promise_fun, Node* promise, 70 void BranchIfFastPath(Node* native_context, Node* promise_fun, Node* promise,
66 Label* if_isunmodified, Label* if_ismodified); 71 Label* if_isunmodified, Label* if_ismodified);
67 72
68 Node* CreatePromiseContext(Node* native_context, int slots); 73 Node* CreatePromiseContext(Node* native_context, int slots);
69 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, 74 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event,
(...skipping 13 matching lines...) Expand all
83 88
84 protected: 89 protected:
85 void PromiseInit(Node* promise); 90 void PromiseInit(Node* promise);
86 91
87 private: 92 private:
88 Node* AllocateJSPromise(Node* context); 93 Node* AllocateJSPromise(Node* context);
89 }; 94 };
90 95
91 } // namespace internal 96 } // namespace internal
92 } // namespace v8 97 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-function.cc ('k') | src/builtins/builtins-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698