| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 const Operator* ChangeInt32ToInt64(); | 188 const Operator* ChangeInt32ToInt64(); |
| 189 const Operator* ChangeUint32ToFloat64(); | 189 const Operator* ChangeUint32ToFloat64(); |
| 190 const Operator* ChangeUint32ToUint64(); | 190 const Operator* ChangeUint32ToUint64(); |
| 191 | 191 |
| 192 // These operators truncate numbers, both changing the representation of | 192 // These operators truncate numbers, both changing the representation of |
| 193 // the number and mapping multiple input values onto the same output value. | 193 // the number and mapping multiple input values onto the same output value. |
| 194 const Operator* TruncateFloat64ToFloat32(); | 194 const Operator* TruncateFloat64ToFloat32(); |
| 195 const Operator* TruncateFloat64ToInt32(TruncationMode); | 195 const Operator* TruncateFloat64ToInt32(TruncationMode); |
| 196 const Operator* TruncateInt64ToInt32(); | 196 const Operator* TruncateInt64ToInt32(); |
| 197 | 197 |
| 198 // These operators reinterpret the bits of a floating point number as an |
| 199 // integer and vice versa. |
| 200 const Operator* BitcastFloat32ToInt32(); |
| 201 const Operator* BitcastFloat64ToInt64(); |
| 202 const Operator* BitcastInt32ToFloat32(); |
| 203 const Operator* BitcastInt64ToFloat64(); |
| 204 |
| 198 // Floating point operators always operate with IEEE 754 round-to-nearest | 205 // Floating point operators always operate with IEEE 754 round-to-nearest |
| 199 // (single-precision). | 206 // (single-precision). |
| 200 const Operator* Float32Add(); | 207 const Operator* Float32Add(); |
| 201 const Operator* Float32Sub(); | 208 const Operator* Float32Sub(); |
| 202 const Operator* Float32Mul(); | 209 const Operator* Float32Mul(); |
| 203 const Operator* Float32Div(); | 210 const Operator* Float32Div(); |
| 204 const Operator* Float32Sqrt(); | 211 const Operator* Float32Sqrt(); |
| 205 | 212 |
| 206 // Floating point operators always operate with IEEE 754 round-to-nearest | 213 // Floating point operators always operate with IEEE 754 round-to-nearest |
| 207 // (double-precision). | 214 // (double-precision). |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 }; | 312 }; |
| 306 | 313 |
| 307 | 314 |
| 308 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 315 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 309 | 316 |
| 310 } // namespace compiler | 317 } // namespace compiler |
| 311 } // namespace internal | 318 } // namespace internal |
| 312 } // namespace v8 | 319 } // namespace v8 |
| 313 | 320 |
| 314 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 321 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |