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

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

Issue 1350223006: binary-operator-reducer: reduce mul+div(shift) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: TruncateInt64ToFloat64 Created 5 years, 2 months 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
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const Operator* ChangeInt32ToFloat64(); 187 const Operator* ChangeInt32ToFloat64();
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 const Operator* TruncateInt64ToFloat64();
197 198
198 // Floating point operators always operate with IEEE 754 round-to-nearest 199 // Floating point operators always operate with IEEE 754 round-to-nearest
199 // (single-precision). 200 // (single-precision).
200 const Operator* Float32Add(); 201 const Operator* Float32Add();
201 const Operator* Float32Sub(); 202 const Operator* Float32Sub();
202 const Operator* Float32Mul(); 203 const Operator* Float32Mul();
203 const Operator* Float32Div(); 204 const Operator* Float32Div();
204 const Operator* Float32Sqrt(); 205 const Operator* Float32Sqrt();
205 206
206 // Floating point operators always operate with IEEE 754 round-to-nearest 207 // Floating point operators always operate with IEEE 754 round-to-nearest
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 }; 306 };
306 307
307 308
308 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 309 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
309 310
310 } // namespace compiler 311 } // namespace compiler
311 } // namespace internal 312 } // namespace internal
312 } // namespace v8 313 } // namespace v8
313 314
314 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 315 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698