OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_COMPILER_MACHINE_OPERATOR_H_ | 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ |
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ | 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const Operator* ChangeUint32ToFloat64(); | 204 const Operator* ChangeUint32ToFloat64(); |
205 const Operator* ChangeUint32ToUint64(); | 205 const Operator* ChangeUint32ToUint64(); |
206 | 206 |
207 // These operators truncate or round numbers, both changing the representation | 207 // These operators truncate or round numbers, both changing the representation |
208 // of the number and mapping multiple input values onto the same output value. | 208 // of the number and mapping multiple input values onto the same output value. |
209 const Operator* TruncateFloat64ToFloat32(); | 209 const Operator* TruncateFloat64ToFloat32(); |
210 const Operator* TruncateFloat64ToInt32(TruncationMode); | 210 const Operator* TruncateFloat64ToInt32(TruncationMode); |
211 const Operator* TruncateInt64ToInt32(); | 211 const Operator* TruncateInt64ToInt32(); |
212 const Operator* RoundInt64ToFloat32(); | 212 const Operator* RoundInt64ToFloat32(); |
213 const Operator* RoundInt64ToFloat64(); | 213 const Operator* RoundInt64ToFloat64(); |
| 214 const Operator* RoundUint64ToFloat32(); |
214 const Operator* RoundUint64ToFloat64(); | 215 const Operator* RoundUint64ToFloat64(); |
215 | 216 |
216 // These operators reinterpret the bits of a floating point number as an | 217 // These operators reinterpret the bits of a floating point number as an |
217 // integer and vice versa. | 218 // integer and vice versa. |
218 const Operator* BitcastFloat32ToInt32(); | 219 const Operator* BitcastFloat32ToInt32(); |
219 const Operator* BitcastFloat64ToInt64(); | 220 const Operator* BitcastFloat64ToInt64(); |
220 const Operator* BitcastInt32ToFloat32(); | 221 const Operator* BitcastInt32ToFloat32(); |
221 const Operator* BitcastInt64ToFloat64(); | 222 const Operator* BitcastInt64ToFloat64(); |
222 | 223 |
223 // Floating point operators always operate with IEEE 754 round-to-nearest | 224 // Floating point operators always operate with IEEE 754 round-to-nearest |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 }; | 331 }; |
331 | 332 |
332 | 333 |
333 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 334 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
334 | 335 |
335 } // namespace compiler | 336 } // namespace compiler |
336 } // namespace internal | 337 } // namespace internal |
337 } // namespace v8 | 338 } // namespace v8 |
338 | 339 |
339 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 340 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
OLD | NEW |