| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 const Operator* TruncateFloat32ToUint32(); | 289 const Operator* TruncateFloat32ToUint32(); |
| 290 const Operator* TryTruncateFloat32ToInt64(); | 290 const Operator* TryTruncateFloat32ToInt64(); |
| 291 const Operator* TryTruncateFloat64ToInt64(); | 291 const Operator* TryTruncateFloat64ToInt64(); |
| 292 const Operator* TryTruncateFloat32ToUint64(); | 292 const Operator* TryTruncateFloat32ToUint64(); |
| 293 const Operator* TryTruncateFloat64ToUint64(); | 293 const Operator* TryTruncateFloat64ToUint64(); |
| 294 const Operator* ChangeInt32ToFloat64(); | 294 const Operator* ChangeInt32ToFloat64(); |
| 295 const Operator* ChangeInt32ToInt64(); | 295 const Operator* ChangeInt32ToInt64(); |
| 296 const Operator* ChangeUint32ToFloat64(); | 296 const Operator* ChangeUint32ToFloat64(); |
| 297 const Operator* ChangeUint32ToUint64(); | 297 const Operator* ChangeUint32ToUint64(); |
| 298 | 298 |
| 299 // These are changes from impossible values (for example a smi-checked |
| 300 // string). They can safely emit an abort instruction, which should |
| 301 // never be reached. |
| 302 const Operator* ImpossibleToWord32(); |
| 303 const Operator* ImpossibleToWord64(); |
| 304 const Operator* ImpossibleToFloat32(); |
| 305 const Operator* ImpossibleToFloat64(); |
| 306 const Operator* ImpossibleToTagged(); |
| 307 const Operator* ImpossibleToBit(); |
| 308 |
| 299 // These operators truncate or round numbers, both changing the representation | 309 // These operators truncate or round numbers, both changing the representation |
| 300 // of the number and mapping multiple input values onto the same output value. | 310 // of the number and mapping multiple input values onto the same output value. |
| 301 const Operator* TruncateFloat64ToFloat32(); | 311 const Operator* TruncateFloat64ToFloat32(); |
| 302 const Operator* TruncateInt64ToInt32(); | 312 const Operator* TruncateInt64ToInt32(); |
| 303 const Operator* RoundFloat64ToInt32(); | 313 const Operator* RoundFloat64ToInt32(); |
| 304 const Operator* RoundInt32ToFloat32(); | 314 const Operator* RoundInt32ToFloat32(); |
| 305 const Operator* RoundInt64ToFloat32(); | 315 const Operator* RoundInt64ToFloat32(); |
| 306 const Operator* RoundInt64ToFloat64(); | 316 const Operator* RoundInt64ToFloat64(); |
| 307 const Operator* RoundUint32ToFloat32(); | 317 const Operator* RoundUint32ToFloat32(); |
| 308 const Operator* RoundUint64ToFloat32(); | 318 const Operator* RoundUint64ToFloat32(); |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 }; | 687 }; |
| 678 | 688 |
| 679 | 689 |
| 680 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 690 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 681 | 691 |
| 682 } // namespace compiler | 692 } // namespace compiler |
| 683 } // namespace internal | 693 } // namespace internal |
| 684 } // namespace v8 | 694 } // namespace v8 |
| 685 | 695 |
| 686 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 696 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |