| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |