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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_ |
6 #define V8_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_CODE_STUB_ASSEMBLER_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "src/compiler/code-assembler.h" | 10 #include "src/compiler/code-assembler.h" |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 // Promise helpers | 1101 // Promise helpers |
1102 Node* IsPromiseHookEnabled(); | 1102 Node* IsPromiseHookEnabled(); |
1103 | 1103 |
1104 Node* AllocateJSPromise(Node* context); | 1104 Node* AllocateJSPromise(Node* context); |
1105 void PromiseInit(Node* promise); | 1105 void PromiseInit(Node* promise); |
1106 | 1106 |
1107 // Other promise fields may also be need to set/reset. This only | 1107 // Other promise fields may also be need to set/reset. This only |
1108 // provides a helper for certain init patterns. | 1108 // provides a helper for certain init patterns. |
1109 void PromiseSet(Node* promise, Node* status, Node* result); | 1109 void PromiseSet(Node* promise, Node* status, Node* result); |
1110 | 1110 |
1111 Node* AllocatePromiseReactionJobInfo(Node* value, Node* promise, Node* tasks, | 1111 Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks, |
1112 Node* deferred, Node* context); | 1112 Node* deferred_promise, |
| 1113 Node* deferred_on_resolve, |
| 1114 Node* deferred_on_reject, Node* context); |
1113 | 1115 |
1114 protected: | 1116 protected: |
1115 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1117 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
1116 Label* if_found, Variable* var_name_index, | 1118 Label* if_found, Variable* var_name_index, |
1117 Label* if_not_found); | 1119 Label* if_not_found); |
1118 | 1120 |
1119 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1121 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
1120 Node* receiver, Label* if_bailout); | 1122 Node* receiver, Label* if_bailout); |
1121 | 1123 |
1122 Node* TryToIntptr(Node* key, Label* miss); | 1124 Node* TryToIntptr(Node* key, Label* miss); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 } | 1217 } |
1216 #else | 1218 #else |
1217 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1219 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1218 #endif | 1220 #endif |
1219 | 1221 |
1220 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1222 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1221 | 1223 |
1222 } // namespace internal | 1224 } // namespace internal |
1223 } // namespace v8 | 1225 } // namespace v8 |
1224 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1226 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |