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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 Node* HashSeed(); | 133 Node* HashSeed(); |
134 Node* StaleRegisterConstant(); | 134 Node* StaleRegisterConstant(); |
135 | 135 |
136 Node* IntPtrOrSmiConstant(int value, ParameterMode mode); | 136 Node* IntPtrOrSmiConstant(int value, ParameterMode mode); |
137 | 137 |
138 Node* IntPtrAddFoldConstants(Node* left, Node* right); | 138 Node* IntPtrAddFoldConstants(Node* left, Node* right); |
139 Node* IntPtrSubFoldConstants(Node* left, Node* right); | 139 Node* IntPtrSubFoldConstants(Node* left, Node* right); |
140 // Round the 32bits payload of the provided word up to the next power of two. | 140 // Round the 32bits payload of the provided word up to the next power of two. |
141 Node* IntPtrRoundUpToPowerOfTwo32(Node* value); | 141 Node* IntPtrRoundUpToPowerOfTwo32(Node* value); |
| 142 // Select the maximum of the two provided IntPtr values. |
142 Node* IntPtrMax(Node* left, Node* right); | 143 Node* IntPtrMax(Node* left, Node* right); |
| 144 // Select the minimum of the two provided IntPtr values. |
| 145 Node* IntPtrMin(Node* left, Node* right); |
143 | 146 |
144 // Float64 operations. | 147 // Float64 operations. |
145 Node* Float64Ceil(Node* x); | 148 Node* Float64Ceil(Node* x); |
146 Node* Float64Floor(Node* x); | 149 Node* Float64Floor(Node* x); |
147 Node* Float64Round(Node* x); | 150 Node* Float64Round(Node* x); |
148 Node* Float64RoundToEven(Node* x); | 151 Node* Float64RoundToEven(Node* x); |
149 Node* Float64Trunc(Node* x); | 152 Node* Float64Trunc(Node* x); |
150 | 153 |
151 // Tag a Word as a Smi value. | 154 // Tag a Word as a Smi value. |
152 Node* SmiTag(Node* value); | 155 Node* SmiTag(Node* value); |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 } | 1206 } |
1204 #else | 1207 #else |
1205 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1208 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1206 #endif | 1209 #endif |
1207 | 1210 |
1208 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1211 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1209 | 1212 |
1210 } // namespace internal | 1213 } // namespace internal |
1211 } // namespace v8 | 1214 } // namespace v8 |
1212 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1215 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |