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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 const Operator* Uint64Mod(); | 221 const Operator* Uint64Mod(); |
222 | 222 |
223 // These operators change the representation of numbers while preserving the | 223 // These operators change the representation of numbers while preserving the |
224 // value of the number. Narrowing operators assume the input is representable | 224 // value of the number. Narrowing operators assume the input is representable |
225 // in the target type and are *not* defined for other inputs. | 225 // in the target type and are *not* defined for other inputs. |
226 // Use narrowing change operators only when there is a static guarantee that | 226 // Use narrowing change operators only when there is a static guarantee that |
227 // the input value is representable in the target value. | 227 // the input value is representable in the target value. |
228 const Operator* ChangeFloat32ToFloat64(); | 228 const Operator* ChangeFloat32ToFloat64(); |
229 const Operator* ChangeFloat64ToInt32(); // narrowing | 229 const Operator* ChangeFloat64ToInt32(); // narrowing |
230 const Operator* ChangeFloat64ToUint32(); // narrowing | 230 const Operator* ChangeFloat64ToUint32(); // narrowing |
| 231 const Operator* TruncateFloat64ToUint32(); |
231 const Operator* TruncateFloat32ToInt32(); | 232 const Operator* TruncateFloat32ToInt32(); |
232 const Operator* TruncateFloat32ToUint32(); | 233 const Operator* TruncateFloat32ToUint32(); |
233 const Operator* TryTruncateFloat32ToInt64(); | 234 const Operator* TryTruncateFloat32ToInt64(); |
234 const Operator* TryTruncateFloat64ToInt64(); | 235 const Operator* TryTruncateFloat64ToInt64(); |
235 const Operator* TryTruncateFloat32ToUint64(); | 236 const Operator* TryTruncateFloat32ToUint64(); |
236 const Operator* TryTruncateFloat64ToUint64(); | 237 const Operator* TryTruncateFloat64ToUint64(); |
237 const Operator* ChangeInt32ToFloat64(); | 238 const Operator* ChangeInt32ToFloat64(); |
238 const Operator* ChangeInt32ToInt64(); | 239 const Operator* ChangeInt32ToInt64(); |
239 const Operator* ChangeUint32ToFloat64(); | 240 const Operator* ChangeUint32ToFloat64(); |
240 const Operator* ChangeUint32ToUint64(); | 241 const Operator* ChangeUint32ToUint64(); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 }; | 378 }; |
378 | 379 |
379 | 380 |
380 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 381 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
381 | 382 |
382 } // namespace compiler | 383 } // namespace compiler |
383 } // namespace internal | 384 } // namespace internal |
384 } // namespace v8 | 385 } // namespace v8 |
385 | 386 |
386 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 387 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
OLD | NEW |