| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, | 75 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, |
| 76 Node* promise_capability); | 76 Node* promise_capability); |
| 77 | 77 |
| 78 void PromiseFulfill(Node* context, Node* promise, Node* result, | 78 void PromiseFulfill(Node* context, Node* promise, Node* result, |
| 79 v8::Promise::PromiseState status); | 79 v8::Promise::PromiseState status); |
| 80 | 80 |
| 81 Node* NewPromiseCapability(Node* context, Node* constructor, | 81 Node* NewPromiseCapability(Node* context, Node* constructor, |
| 82 Node* debug_event = nullptr); | 82 Node* debug_event = nullptr); |
| 83 | 83 |
| 84 void BranchIfAccessCheckFailed(Node* context, Node* native_context, |
| 85 Node* promise_constructor, Node* executor, |
| 86 Label* if_noaccess); |
| 87 |
| 84 protected: | 88 protected: |
| 85 void PromiseInit(Node* promise); | 89 void PromiseInit(Node* promise); |
| 86 | 90 |
| 87 private: | 91 private: |
| 88 Node* AllocateJSPromise(Node* context); | 92 Node* AllocateJSPromise(Node* context); |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace internal | 95 } // namespace internal |
| 92 } // namespace v8 | 96 } // namespace v8 |
| OLD | NEW |