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 23 matching lines...) Expand all Loading... | |
| 34 | 34 |
| 35 Node* InternalPerformPromiseThen(Node* context, Node* promise, | 35 Node* InternalPerformPromiseThen(Node* context, Node* promise, |
| 36 Node* on_resolve, Node* on_reject, | 36 Node* on_resolve, Node* on_reject, |
| 37 Node* deferred); | 37 Node* deferred); |
| 38 | 38 |
| 39 void InternalResolvePromise(Node* context, Node* promise, Node* result); | 39 void InternalResolvePromise(Node* context, Node* promise, Node* result); |
| 40 | 40 |
| 41 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, | 41 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, |
| 42 Label* if_ismodified); | 42 Label* if_ismodified); |
| 43 | 43 |
| 44 Node* CreatePromiseContext(Node* native_context, int slots); | |
|
gsathya
2016/12/30 02:35:42
Can you please add tests for this and the others?
caitp
2017/01/02 15:51:12
Added tests for NewPromiseCapability and CreatePro
| |
| 44 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, | 45 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, |
| 45 Node* native_context); | 46 Node* native_context); |
| 46 | 47 |
| 47 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( | 48 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( |
| 48 Node* promise, Node* native_context, Node* promise_context); | 49 Node* promise, Node* native_context, Node* promise_context); |
| 50 | |
| 51 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, | |
| 52 Node* promise_capability); | |
| 53 | |
| 54 Node* NewPromiseCapability(Node* context, Node* constructor, | |
| 55 Node* debug_event = nullptr); | |
| 56 Node* NewInternalPromiseCapability(Node* context, Node* parent); | |
| 49 }; | 57 }; |
| 50 | 58 |
| 51 } // namespace internal | 59 } // namespace internal |
| 52 } // namespace v8 | 60 } // namespace v8 |
| OLD | NEW |