| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 const Operator* ChangeInt32ToFloat64(); | 195 const Operator* ChangeInt32ToFloat64(); |
| 196 const Operator* ChangeInt32ToInt64(); | 196 const Operator* ChangeInt32ToInt64(); |
| 197 const Operator* ChangeUint32ToFloat64(); | 197 const Operator* ChangeUint32ToFloat64(); |
| 198 const Operator* ChangeUint32ToUint64(); | 198 const Operator* ChangeUint32ToUint64(); |
| 199 | 199 |
| 200 // These operators truncate or round numbers, both changing the representation | 200 // These operators truncate or round numbers, both changing the representation |
| 201 // of the number and mapping multiple input values onto the same output value. | 201 // of the number and mapping multiple input values onto the same output value. |
| 202 const Operator* TruncateFloat64ToFloat32(); | 202 const Operator* TruncateFloat64ToFloat32(); |
| 203 const Operator* TruncateFloat64ToInt32(TruncationMode); | 203 const Operator* TruncateFloat64ToInt32(TruncationMode); |
| 204 const Operator* TruncateInt64ToInt32(); | 204 const Operator* TruncateInt64ToInt32(); |
| 205 const Operator* RoundInt64ToFloat32(); |
| 205 const Operator* RoundInt64ToFloat64(); | 206 const Operator* RoundInt64ToFloat64(); |
| 206 | 207 |
| 207 // These operators reinterpret the bits of a floating point number as an | 208 // These operators reinterpret the bits of a floating point number as an |
| 208 // integer and vice versa. | 209 // integer and vice versa. |
| 209 const Operator* BitcastFloat32ToInt32(); | 210 const Operator* BitcastFloat32ToInt32(); |
| 210 const Operator* BitcastFloat64ToInt64(); | 211 const Operator* BitcastFloat64ToInt64(); |
| 211 const Operator* BitcastInt32ToFloat32(); | 212 const Operator* BitcastInt32ToFloat32(); |
| 212 const Operator* BitcastInt64ToFloat64(); | 213 const Operator* BitcastInt64ToFloat64(); |
| 213 | 214 |
| 214 // Floating point operators always operate with IEEE 754 round-to-nearest | 215 // Floating point operators always operate with IEEE 754 round-to-nearest |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 }; | 322 }; |
| 322 | 323 |
| 323 | 324 |
| 324 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 325 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 325 | 326 |
| 326 } // namespace compiler | 327 } // namespace compiler |
| 327 } // namespace internal | 328 } // namespace internal |
| 328 } // namespace v8 | 329 } // namespace v8 |
| 329 | 330 |
| 330 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 331 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |