| 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 // Promise helpers | 1089 // Promise helpers |
| 1090 Node* IsPromiseHookEnabled(); | 1090 Node* IsPromiseHookEnabled(); |
| 1091 | 1091 |
| 1092 Node* AllocateJSPromise(Node* context); | 1092 Node* AllocateJSPromise(Node* context); |
| 1093 void PromiseInit(Node* promise); | 1093 void PromiseInit(Node* promise); |
| 1094 | 1094 |
| 1095 // Other promise fields may also be need to set/reset. This only | 1095 // Other promise fields may also be need to set/reset. This only |
| 1096 // provides a helper for certain init patterns. | 1096 // provides a helper for certain init patterns. |
| 1097 void PromiseSet(Node* promise, Node* status, Node* result); | 1097 void PromiseSet(Node* promise, Node* status, Node* result); |
| 1098 | 1098 |
| 1099 Node* AllocatePromiseReactionJobInfo(Node* value, Node* tasks, Node* deferred, | 1099 Node* AllocatePromiseReactionJobInfo(Node* value, Node* promise, Node* tasks, |
| 1100 Node* context); | 1100 Node* deferred, Node* context); |
| 1101 | 1101 |
| 1102 protected: | 1102 protected: |
| 1103 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1103 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
| 1104 Label* if_found, Variable* var_name_index, | 1104 Label* if_found, Variable* var_name_index, |
| 1105 Label* if_not_found); | 1105 Label* if_not_found); |
| 1106 | 1106 |
| 1107 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1107 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
| 1108 Node* receiver, Label* if_bailout); | 1108 Node* receiver, Label* if_bailout); |
| 1109 | 1109 |
| 1110 Node* TryToIntptr(Node* key, Label* miss); | 1110 Node* TryToIntptr(Node* key, Label* miss); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 } | 1203 } |
| 1204 #else | 1204 #else |
| 1205 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1205 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1206 #endif | 1206 #endif |
| 1207 | 1207 |
| 1208 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1208 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1209 | 1209 |
| 1210 } // namespace internal | 1210 } // namespace internal |
| 1211 } // namespace v8 | 1211 } // namespace v8 |
| 1212 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1212 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |