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* promise_constructor, |
| 85 Node* executor, Label* if_noaccess); |
| 86 |
84 protected: | 87 protected: |
85 void PromiseInit(Node* promise); | 88 void PromiseInit(Node* promise); |
86 | 89 |
87 private: | 90 private: |
88 Node* AllocateJSPromise(Node* context); | 91 Node* AllocateJSPromise(Node* context); |
89 }; | 92 }; |
90 | 93 |
91 } // namespace internal | 94 } // namespace internal |
92 } // namespace v8 | 95 } // namespace v8 |
OLD | NEW |