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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 Node* context); | 1160 Node* context); |
1161 | 1161 |
1162 // Promise helpers | 1162 // Promise helpers |
1163 Node* IsPromiseHookEnabled(); | 1163 Node* IsPromiseHookEnabled(); |
1164 | 1164 |
1165 Node* AllocatePromiseReactionJobInfo(Node* value, Node* tasks, | 1165 Node* AllocatePromiseReactionJobInfo(Node* value, Node* tasks, |
1166 Node* deferred_promise, | 1166 Node* deferred_promise, |
1167 Node* deferred_on_resolve, | 1167 Node* deferred_on_resolve, |
1168 Node* deferred_on_reject, Node* context); | 1168 Node* deferred_on_reject, Node* context); |
1169 | 1169 |
| 1170 // Support for printf-style debugging |
| 1171 void Print(const char* s); |
| 1172 void Print(const char* prefix, Node* tagged_value); |
| 1173 inline void Print(Node* tagged_value) { return Print(nullptr, tagged_value); } |
| 1174 |
1170 protected: | 1175 protected: |
1171 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1176 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
1172 Label* if_found, Variable* var_name_index, | 1177 Label* if_found, Variable* var_name_index, |
1173 Label* if_not_found); | 1178 Label* if_not_found); |
1174 | 1179 |
1175 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1180 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
1176 Node* receiver, Label* if_bailout); | 1181 Node* receiver, Label* if_bailout); |
1177 | 1182 |
1178 Node* TryToIntptr(Node* key, Label* miss); | 1183 Node* TryToIntptr(Node* key, Label* miss); |
1179 | 1184 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 } | 1291 } |
1287 #else | 1292 #else |
1288 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1293 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1289 #endif | 1294 #endif |
1290 | 1295 |
1291 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1296 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1292 | 1297 |
1293 } // namespace internal | 1298 } // namespace internal |
1294 } // namespace v8 | 1299 } // namespace v8 |
1295 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1300 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |