| 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/machine-type.h" | 9 #include "src/machine-type.h" |
| 10 | 10 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 const Operator* ChangeInt32ToFloat64(); | 220 const Operator* ChangeInt32ToFloat64(); |
| 221 const Operator* ChangeInt32ToInt64(); | 221 const Operator* ChangeInt32ToInt64(); |
| 222 const Operator* ChangeUint32ToFloat64(); | 222 const Operator* ChangeUint32ToFloat64(); |
| 223 const Operator* ChangeUint32ToUint64(); | 223 const Operator* ChangeUint32ToUint64(); |
| 224 | 224 |
| 225 // These operators truncate or round numbers, both changing the representation | 225 // These operators truncate or round numbers, both changing the representation |
| 226 // of the number and mapping multiple input values onto the same output value. | 226 // of the number and mapping multiple input values onto the same output value. |
| 227 const Operator* TruncateFloat64ToFloat32(); | 227 const Operator* TruncateFloat64ToFloat32(); |
| 228 const Operator* TruncateFloat64ToInt32(TruncationMode); | 228 const Operator* TruncateFloat64ToInt32(TruncationMode); |
| 229 const Operator* TruncateInt64ToInt32(); | 229 const Operator* TruncateInt64ToInt32(); |
| 230 const Operator* RoundInt32ToFloat32(); |
| 230 const Operator* RoundInt64ToFloat32(); | 231 const Operator* RoundInt64ToFloat32(); |
| 231 const Operator* RoundInt64ToFloat64(); | 232 const Operator* RoundInt64ToFloat64(); |
| 232 const Operator* RoundUint64ToFloat32(); | 233 const Operator* RoundUint64ToFloat32(); |
| 233 const Operator* RoundUint64ToFloat64(); | 234 const Operator* RoundUint64ToFloat64(); |
| 234 | 235 |
| 235 // These operators reinterpret the bits of a floating point number as an | 236 // These operators reinterpret the bits of a floating point number as an |
| 236 // integer and vice versa. | 237 // integer and vice versa. |
| 237 const Operator* BitcastFloat32ToInt32(); | 238 const Operator* BitcastFloat32ToInt32(); |
| 238 const Operator* BitcastFloat64ToInt64(); | 239 const Operator* BitcastFloat64ToInt64(); |
| 239 const Operator* BitcastInt32ToFloat32(); | 240 const Operator* BitcastInt32ToFloat32(); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 }; | 356 }; |
| 356 | 357 |
| 357 | 358 |
| 358 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 359 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 359 | 360 |
| 360 } // namespace compiler | 361 } // namespace compiler |
| 361 } // namespace internal | 362 } // namespace internal |
| 362 } // namespace v8 | 363 } // namespace v8 |
| 363 | 364 |
| 364 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 365 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |