| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const Operator* Uint64Mod(); | 197 const Operator* Uint64Mod(); |
| 198 | 198 |
| 199 // These operators change the representation of numbers while preserving the | 199 // These operators change the representation of numbers while preserving the |
| 200 // value of the number. Narrowing operators assume the input is representable | 200 // value of the number. Narrowing operators assume the input is representable |
| 201 // in the target type and are *not* defined for other inputs. | 201 // in the target type and are *not* defined for other inputs. |
| 202 // Use narrowing change operators only when there is a static guarantee that | 202 // Use narrowing change operators only when there is a static guarantee that |
| 203 // the input value is representable in the target value. | 203 // the input value is representable in the target value. |
| 204 const Operator* ChangeFloat32ToFloat64(); | 204 const Operator* ChangeFloat32ToFloat64(); |
| 205 const Operator* ChangeFloat64ToInt32(); // narrowing | 205 const Operator* ChangeFloat64ToInt32(); // narrowing |
| 206 const Operator* ChangeFloat64ToUint32(); // narrowing | 206 const Operator* ChangeFloat64ToUint32(); // narrowing |
| 207 const Operator* TruncateFloat32ToInt64(); | |
| 208 const Operator* TruncateFloat64ToInt64(); | 207 const Operator* TruncateFloat64ToInt64(); |
| 209 const Operator* TruncateFloat64ToUint64(); | 208 const Operator* TruncateFloat64ToUint64(); |
| 210 const Operator* ChangeInt32ToFloat64(); | 209 const Operator* ChangeInt32ToFloat64(); |
| 211 const Operator* ChangeInt32ToInt64(); | 210 const Operator* ChangeInt32ToInt64(); |
| 212 const Operator* ChangeUint32ToFloat64(); | 211 const Operator* ChangeUint32ToFloat64(); |
| 213 const Operator* ChangeUint32ToUint64(); | 212 const Operator* ChangeUint32ToUint64(); |
| 214 | 213 |
| 215 // These operators truncate or round numbers, both changing the representation | 214 // These operators truncate or round numbers, both changing the representation |
| 216 // of the number and mapping multiple input values onto the same output value. | 215 // of the number and mapping multiple input values onto the same output value. |
| 217 const Operator* TruncateFloat64ToFloat32(); | 216 const Operator* TruncateFloat64ToFloat32(); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 }; | 342 }; |
| 344 | 343 |
| 345 | 344 |
| 346 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 345 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 347 | 346 |
| 348 } // namespace compiler | 347 } // namespace compiler |
| 349 } // namespace internal | 348 } // namespace internal |
| 350 } // namespace v8 | 349 } // namespace v8 |
| 351 | 350 |
| 352 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 351 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |