| 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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 | 1072 |
| 1073 // Debug helpers | 1073 // Debug helpers |
| 1074 Node* IsDebugActive(); | 1074 Node* IsDebugActive(); |
| 1075 | 1075 |
| 1076 // TypedArray/ArrayBuffer helpers | 1076 // TypedArray/ArrayBuffer helpers |
| 1077 Node* IsDetachedBuffer(Node* buffer); | 1077 Node* IsDetachedBuffer(Node* buffer); |
| 1078 | 1078 |
| 1079 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, | 1079 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, |
| 1080 ParameterMode mode, int base_size = 0); | 1080 ParameterMode mode, int base_size = 0); |
| 1081 | 1081 |
| 1082 Node* AllocateFunctionWithMapAndContext(Node* map, Node* shared_info, |
| 1083 Node* context); |
| 1084 |
| 1082 // Promise helpers | 1085 // Promise helpers |
| 1083 Node* IsPromiseHookEnabled(); | 1086 Node* IsPromiseHookEnabled(); |
| 1084 | 1087 |
| 1088 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, |
| 1089 Node* native_context); |
| 1090 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( |
| 1091 Node* promise, Node* native_context, Node* promise_context); |
| 1085 Node* AllocateJSPromise(Node* context); | 1092 Node* AllocateJSPromise(Node* context); |
| 1086 void PromiseInit(Node* promise); | 1093 void PromiseInit(Node* promise); |
| 1087 | 1094 |
| 1088 // 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 |
| 1089 // provides a helper for certain init patterns. | 1096 // provides a helper for certain init patterns. |
| 1090 void PromiseSet(Node* promise, Node* status, Node* result); | 1097 void PromiseSet(Node* promise, Node* status, Node* result); |
| 1091 | 1098 |
| 1092 protected: | 1099 protected: |
| 1093 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1100 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
| 1094 Label* if_found, Variable* var_name_index, | 1101 Label* if_found, Variable* var_name_index, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 } | 1200 } |
| 1194 #else | 1201 #else |
| 1195 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1202 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1196 #endif | 1203 #endif |
| 1197 | 1204 |
| 1198 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1205 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1199 | 1206 |
| 1200 } // namespace internal | 1207 } // namespace internal |
| 1201 } // namespace v8 | 1208 } // namespace v8 |
| 1202 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1209 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |