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