| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 const Operator* ChangeUint32ToUint64(); | 224 const Operator* ChangeUint32ToUint64(); |
| 225 | 225 |
| 226 // These operators truncate or round numbers, both changing the representation | 226 // These operators truncate or round numbers, both changing the representation |
| 227 // of the number and mapping multiple input values onto the same output value. | 227 // of the number and mapping multiple input values onto the same output value. |
| 228 const Operator* TruncateFloat64ToFloat32(); | 228 const Operator* TruncateFloat64ToFloat32(); |
| 229 const Operator* TruncateFloat64ToInt32(TruncationMode); | 229 const Operator* TruncateFloat64ToInt32(TruncationMode); |
| 230 const Operator* TruncateInt64ToInt32(); | 230 const Operator* TruncateInt64ToInt32(); |
| 231 const Operator* RoundInt32ToFloat32(); | 231 const Operator* RoundInt32ToFloat32(); |
| 232 const Operator* RoundInt64ToFloat32(); | 232 const Operator* RoundInt64ToFloat32(); |
| 233 const Operator* RoundInt64ToFloat64(); | 233 const Operator* RoundInt64ToFloat64(); |
| 234 const Operator* RoundUint32ToFloat32(); |
| 234 const Operator* RoundUint64ToFloat32(); | 235 const Operator* RoundUint64ToFloat32(); |
| 235 const Operator* RoundUint64ToFloat64(); | 236 const Operator* RoundUint64ToFloat64(); |
| 236 | 237 |
| 237 // These operators reinterpret the bits of a floating point number as an | 238 // These operators reinterpret the bits of a floating point number as an |
| 238 // integer and vice versa. | 239 // integer and vice versa. |
| 239 const Operator* BitcastFloat32ToInt32(); | 240 const Operator* BitcastFloat32ToInt32(); |
| 240 const Operator* BitcastFloat64ToInt64(); | 241 const Operator* BitcastFloat64ToInt64(); |
| 241 const Operator* BitcastInt32ToFloat32(); | 242 const Operator* BitcastInt32ToFloat32(); |
| 242 const Operator* BitcastInt64ToFloat64(); | 243 const Operator* BitcastInt64ToFloat64(); |
| 243 | 244 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 | 360 |
| 360 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 361 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 361 | 362 |
| 362 } // namespace compiler | 363 } // namespace compiler |
| 363 } // namespace internal | 364 } // namespace internal |
| 364 } // namespace v8 | 365 } // namespace v8 |
| 365 | 366 |
| 366 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 367 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |