| 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 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 // Promise helpers | 1127 // Promise helpers |
| 1128 Node* IsPromiseHookEnabled(); | 1128 Node* IsPromiseHookEnabled(); |
| 1129 | 1129 |
| 1130 Node* AllocateJSPromise(Node* context); | 1130 Node* AllocateJSPromise(Node* context); |
| 1131 void PromiseInit(Node* promise); | 1131 void PromiseInit(Node* promise); |
| 1132 | 1132 |
| 1133 // Other promise fields may also be need to set/reset. This only | 1133 // Other promise fields may also be need to set/reset. This only |
| 1134 // provides a helper for certain init patterns. | 1134 // provides a helper for certain init patterns. |
| 1135 void PromiseSet(Node* promise, Node* status, Node* result); | 1135 void PromiseSet(Node* promise, Node* status, Node* result); |
| 1136 | 1136 |
| 1137 Node* AllocatePromiseReactionJobInfo(Node* value, Node* promise, Node* tasks, | 1137 Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks, |
| 1138 Node* deferred, Node* context); | 1138 Node* deferred_promise, |
| 1139 Node* deferred_on_resolve, |
| 1140 Node* deferred_on_reject, Node* context); |
| 1139 | 1141 |
| 1140 protected: | 1142 protected: |
| 1141 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1143 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
| 1142 Label* if_found, Variable* var_name_index, | 1144 Label* if_found, Variable* var_name_index, |
| 1143 Label* if_not_found); | 1145 Label* if_not_found); |
| 1144 | 1146 |
| 1145 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1147 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
| 1146 Node* receiver, Label* if_bailout); | 1148 Node* receiver, Label* if_bailout); |
| 1147 | 1149 |
| 1148 Node* TryToIntptr(Node* key, Label* miss); | 1150 Node* TryToIntptr(Node* key, Label* miss); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 } | 1243 } |
| 1242 #else | 1244 #else |
| 1243 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1245 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1244 #endif | 1246 #endif |
| 1245 | 1247 |
| 1246 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1248 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1247 | 1249 |
| 1248 } // namespace internal | 1250 } // namespace internal |
| 1249 } // namespace v8 | 1251 } // namespace v8 |
| 1250 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1252 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |