Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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, | 84 void BranchIfAccessCheckFailed(Node* context, Node* native_context, |
| 85 Node* promise_constructor, Node* executor, | 85 Node* promise_constructor, Node* executor, |
| 86 Label* if_noaccess); | 86 Label* if_noaccess); |
| 87 | 87 |
| 88 void InternalPromiseReject(Node* context, Node* promise, Node* value, | |
|
adamk
2017/01/13 20:31:33
Can this be protected?
gsathya
2017/01/13 21:12:40
Changed this and the rest
| |
| 89 Node* debug_event); | |
| 90 | |
| 88 protected: | 91 protected: |
| 89 void PromiseInit(Node* promise); | 92 void PromiseInit(Node* promise); |
| 90 | 93 |
| 91 private: | 94 private: |
| 92 Node* AllocateJSPromise(Node* context); | 95 Node* AllocateJSPromise(Node* context); |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace internal | 98 } // namespace internal |
| 96 } // namespace v8 | 99 } // namespace v8 |
| OLD | NEW |