Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: src/compiler/machine-operator.h

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Fixed the type of RoundInt64ToFloat64 Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Use narrowing change operators only when there is a static guarantee that 186 // Use narrowing change operators only when there is a static guarantee that
187 // the input value is representable in the target value. 187 // the input value is representable in the target value.
188 const Operator* ChangeFloat32ToFloat64(); 188 const Operator* ChangeFloat32ToFloat64();
189 const Operator* ChangeFloat64ToInt32(); // narrowing 189 const Operator* ChangeFloat64ToInt32(); // narrowing
190 const Operator* ChangeFloat64ToUint32(); // narrowing 190 const Operator* ChangeFloat64ToUint32(); // narrowing
191 const Operator* ChangeInt32ToFloat64(); 191 const Operator* ChangeInt32ToFloat64();
192 const Operator* ChangeInt32ToInt64(); 192 const Operator* ChangeInt32ToInt64();
193 const Operator* ChangeUint32ToFloat64(); 193 const Operator* ChangeUint32ToFloat64();
194 const Operator* ChangeUint32ToUint64(); 194 const Operator* ChangeUint32ToUint64();
195 195
196 // These operators truncate numbers, both changing the representation of 196 // These operators truncate or round numbers, both changing the representation
197 // the number and mapping multiple input values onto the same output value. 197 // of the number and mapping multiple input values onto the same output value.
198 const Operator* TruncateFloat64ToFloat32(); 198 const Operator* TruncateFloat64ToFloat32();
199 const Operator* TruncateFloat64ToInt32(TruncationMode); 199 const Operator* TruncateFloat64ToInt32(TruncationMode);
200 const Operator* TruncateInt64ToInt32(); 200 const Operator* TruncateInt64ToInt32();
201 const Operator* RoundInt64ToFloat64();
201 202
202 // These operators reinterpret the bits of a floating point number as an 203 // These operators reinterpret the bits of a floating point number as an
203 // integer and vice versa. 204 // integer and vice versa.
204 const Operator* BitcastFloat32ToInt32(); 205 const Operator* BitcastFloat32ToInt32();
205 const Operator* BitcastFloat64ToInt64(); 206 const Operator* BitcastFloat64ToInt64();
206 const Operator* BitcastInt32ToFloat32(); 207 const Operator* BitcastInt32ToFloat32();
207 const Operator* BitcastInt64ToFloat64(); 208 const Operator* BitcastInt64ToFloat64();
208 209
209 // Floating point operators always operate with IEEE 754 round-to-nearest 210 // Floating point operators always operate with IEEE 754 round-to-nearest
210 // (single-precision). 211 // (single-precision).
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 }; 317 };
317 318
318 319
319 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 320 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
320 321
321 } // namespace compiler 322 } // namespace compiler
322 } // namespace internal 323 } // namespace internal
323 } // namespace v8 324 } // namespace v8
324 325
325 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 326 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698