| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // These operators change the representation of numbers while preserving the | 205 // These operators change the representation of numbers while preserving the |
| 206 // value of the number. Narrowing operators assume the input is representable | 206 // value of the number. Narrowing operators assume the input is representable |
| 207 // in the target type and are *not* defined for other inputs. | 207 // in the target type and are *not* defined for other inputs. |
| 208 // Use narrowing change operators only when there is a static guarantee that | 208 // Use narrowing change operators only when there is a static guarantee that |
| 209 // the input value is representable in the target value. | 209 // the input value is representable in the target value. |
| 210 const Operator* ChangeFloat32ToFloat64(); | 210 const Operator* ChangeFloat32ToFloat64(); |
| 211 const Operator* ChangeFloat64ToInt32(); // narrowing | 211 const Operator* ChangeFloat64ToInt32(); // narrowing |
| 212 const Operator* ChangeFloat64ToUint32(); // narrowing | 212 const Operator* ChangeFloat64ToUint32(); // narrowing |
| 213 const Operator* TryTruncateFloat32ToInt64(); | 213 const Operator* TryTruncateFloat32ToInt64(); |
| 214 const Operator* TryTruncateFloat64ToInt64(); | 214 const Operator* TryTruncateFloat64ToInt64(); |
| 215 const Operator* TruncateFloat32ToUint64(); | 215 const Operator* TryTruncateFloat32ToUint64(); |
| 216 const Operator* TryTruncateFloat64ToUint64(); | 216 const Operator* TryTruncateFloat64ToUint64(); |
| 217 const Operator* ChangeInt32ToFloat64(); | 217 const Operator* ChangeInt32ToFloat64(); |
| 218 const Operator* ChangeInt32ToInt64(); | 218 const Operator* ChangeInt32ToInt64(); |
| 219 const Operator* ChangeUint32ToFloat64(); | 219 const Operator* ChangeUint32ToFloat64(); |
| 220 const Operator* ChangeUint32ToUint64(); | 220 const Operator* ChangeUint32ToUint64(); |
| 221 | 221 |
| 222 // These operators truncate or round numbers, both changing the representation | 222 // These operators truncate or round numbers, both changing the representation |
| 223 // of the number and mapping multiple input values onto the same output value. | 223 // of the number and mapping multiple input values onto the same output value. |
| 224 const Operator* TruncateFloat64ToFloat32(); | 224 const Operator* TruncateFloat64ToFloat32(); |
| 225 const Operator* TruncateFloat64ToInt32(TruncationMode); | 225 const Operator* TruncateFloat64ToInt32(TruncationMode); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 }; | 352 }; |
| 353 | 353 |
| 354 | 354 |
| 355 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 355 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 356 | 356 |
| 357 } // namespace compiler | 357 } // namespace compiler |
| 358 } // namespace internal | 358 } // namespace internal |
| 359 } // namespace v8 | 359 } // namespace v8 |
| 360 | 360 |
| 361 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 361 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |