| 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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 | 1043 |
| 1044 // Debug helpers | 1044 // Debug helpers |
| 1045 Node* IsDebugActive(); | 1045 Node* IsDebugActive(); |
| 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 |
| 1054 Node* IsPromiseHookEnabled(); |
| 1055 |
| 1053 protected: | 1056 protected: |
| 1054 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, | 1057 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, |
| 1055 Label* if_found, Variable* var_name_index, | 1058 Label* if_found, Variable* var_name_index, |
| 1056 Label* if_not_found); | 1059 Label* if_not_found); |
| 1057 | 1060 |
| 1058 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, | 1061 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, |
| 1059 Node* receiver, Label* if_bailout); | 1062 Node* receiver, Label* if_bailout); |
| 1060 | 1063 |
| 1061 Node* TryToIntptr(Node* key, Label* miss); | 1064 Node* TryToIntptr(Node* key, Label* miss); |
| 1062 | 1065 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 } | 1157 } |
| 1155 #else | 1158 #else |
| 1156 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1159 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1157 #endif | 1160 #endif |
| 1158 | 1161 |
| 1159 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1162 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1160 | 1163 |
| 1161 } // namespace internal | 1164 } // namespace internal |
| 1162 } // namespace v8 | 1165 } // namespace v8 |
| 1163 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1166 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |