| 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 | 1046 |
| 1047 // TypedArray/ArrayBuffer helpers | 1047 // TypedArray/ArrayBuffer helpers |
| 1048 Node* IsDetachedBuffer(Node* buffer); | 1048 Node* IsDetachedBuffer(Node* buffer); |
| 1049 | 1049 |
| 1050 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, | 1050 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, |
| 1051 ParameterMode mode, int base_size = 0); | 1051 ParameterMode mode, int base_size = 0); |
| 1052 | 1052 |
| 1053 // Promise helpers | 1053 // Promise helpers |
| 1054 Node* IsPromiseHookEnabled(); | 1054 Node* IsPromiseHookEnabled(); |
| 1055 | 1055 |
| 1056 Node* AllocateJSPromise(Node* context); |
| 1057 void PromiseInit(Node* promise); |
| 1058 |
| 1059 // Other promise fields may also be need to set/reset. This only |
| 1060 // provides a helper for certain init patterns. |
| 1061 void PromiseSet(Node* promise, Node* status, Node* result); |
| 1062 |
| 1056 protected: | 1063 protected: |
| 1057 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1064 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
| 1058 Label* if_found, Variable* var_name_index, | 1065 Label* if_found, Variable* var_name_index, |
| 1059 Label* if_not_found); | 1066 Label* if_not_found); |
| 1060 | 1067 |
| 1061 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1068 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
| 1062 Node* receiver, Label* if_bailout); | 1069 Node* receiver, Label* if_bailout); |
| 1063 | 1070 |
| 1064 Node* TryToIntptr(Node* key, Label* miss); | 1071 Node* TryToIntptr(Node* key, Label* miss); |
| 1065 | 1072 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 } | 1164 } |
| 1158 #else | 1165 #else |
| 1159 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1166 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1160 #endif | 1167 #endif |
| 1161 | 1168 |
| 1162 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1169 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1163 | 1170 |
| 1164 } // namespace internal | 1171 } // namespace internal |
| 1165 } // namespace v8 | 1172 } // namespace v8 |
| 1166 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1173 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |