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