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