| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 const Operator* Uint64Mod(); | 206 const Operator* Uint64Mod(); |
| 207 | 207 |
| 208 // These operators change the representation of numbers while preserving the | 208 // These operators change the representation of numbers while preserving the |
| 209 // value of the number. Narrowing operators assume the input is representable | 209 // value of the number. Narrowing operators assume the input is representable |
| 210 // in the target type and are *not* defined for other inputs. | 210 // in the target type and are *not* defined for other inputs. |
| 211 // Use narrowing change operators only when there is a static guarantee that | 211 // Use narrowing change operators only when there is a static guarantee that |
| 212 // the input value is representable in the target value. | 212 // the input value is representable in the target value. |
| 213 const Operator* ChangeFloat32ToFloat64(); | 213 const Operator* ChangeFloat32ToFloat64(); |
| 214 const Operator* ChangeFloat64ToInt32(); // narrowing | 214 const Operator* ChangeFloat64ToInt32(); // narrowing |
| 215 const Operator* ChangeFloat64ToUint32(); // narrowing | 215 const Operator* ChangeFloat64ToUint32(); // narrowing |
| 216 const Operator* TruncateFloat32ToInt32(); |
| 216 const Operator* TryTruncateFloat32ToInt64(); | 217 const Operator* TryTruncateFloat32ToInt64(); |
| 217 const Operator* TryTruncateFloat64ToInt64(); | 218 const Operator* TryTruncateFloat64ToInt64(); |
| 218 const Operator* TryTruncateFloat32ToUint64(); | 219 const Operator* TryTruncateFloat32ToUint64(); |
| 219 const Operator* TryTruncateFloat64ToUint64(); | 220 const Operator* TryTruncateFloat64ToUint64(); |
| 220 const Operator* ChangeInt32ToFloat64(); | 221 const Operator* ChangeInt32ToFloat64(); |
| 221 const Operator* ChangeInt32ToInt64(); | 222 const Operator* ChangeInt32ToInt64(); |
| 222 const Operator* ChangeUint32ToFloat64(); | 223 const Operator* ChangeUint32ToFloat64(); |
| 223 const Operator* ChangeUint32ToUint64(); | 224 const Operator* ChangeUint32ToUint64(); |
| 224 | 225 |
| 225 // These operators truncate or round numbers, both changing the representation | 226 // These operators truncate or round numbers, both changing the representation |
| (...skipping 129 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 |