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

Side by Side Diff: test/unittests/compiler/node-test-utils.h

Issue 1478923002: Revert of binary-operator-reducer: reduce mul+div(shift) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 5 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
7 7
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 const Matcher<Node*>& rhs_matcher); 268 const Matcher<Node*>& rhs_matcher);
269 Matcher<Node*> IsWord32Equal(const Matcher<Node*>& lhs_matcher, 269 Matcher<Node*> IsWord32Equal(const Matcher<Node*>& lhs_matcher,
270 const Matcher<Node*>& rhs_matcher); 270 const Matcher<Node*>& rhs_matcher);
271 Matcher<Node*> IsWord32Clz(const Matcher<Node*>& value_matcher); 271 Matcher<Node*> IsWord32Clz(const Matcher<Node*>& value_matcher);
272 Matcher<Node*> IsWord64And(const Matcher<Node*>& lhs_matcher, 272 Matcher<Node*> IsWord64And(const Matcher<Node*>& lhs_matcher,
273 const Matcher<Node*>& rhs_matcher); 273 const Matcher<Node*>& rhs_matcher);
274 Matcher<Node*> IsWord64Or(const Matcher<Node*>& lhs_matcher, 274 Matcher<Node*> IsWord64Or(const Matcher<Node*>& lhs_matcher,
275 const Matcher<Node*>& rhs_matcher); 275 const Matcher<Node*>& rhs_matcher);
276 Matcher<Node*> IsWord64Shl(const Matcher<Node*>& lhs_matcher, 276 Matcher<Node*> IsWord64Shl(const Matcher<Node*>& lhs_matcher,
277 const Matcher<Node*>& rhs_matcher); 277 const Matcher<Node*>& rhs_matcher);
278 Matcher<Node*> IsWord64Shr(const Matcher<Node*>& lhs_matcher,
279 const Matcher<Node*>& rhs_matcher);
280 Matcher<Node*> IsWord64Sar(const Matcher<Node*>& lhs_matcher, 278 Matcher<Node*> IsWord64Sar(const Matcher<Node*>& lhs_matcher,
281 const Matcher<Node*>& rhs_matcher); 279 const Matcher<Node*>& rhs_matcher);
282 Matcher<Node*> IsWord64Equal(const Matcher<Node*>& lhs_matcher, 280 Matcher<Node*> IsWord64Equal(const Matcher<Node*>& lhs_matcher,
283 const Matcher<Node*>& rhs_matcher); 281 const Matcher<Node*>& rhs_matcher);
284 Matcher<Node*> IsInt32AddWithOverflow(const Matcher<Node*>& lhs_matcher, 282 Matcher<Node*> IsInt32AddWithOverflow(const Matcher<Node*>& lhs_matcher,
285 const Matcher<Node*>& rhs_matcher); 283 const Matcher<Node*>& rhs_matcher);
286 Matcher<Node*> IsInt32Add(const Matcher<Node*>& lhs_matcher, 284 Matcher<Node*> IsInt32Add(const Matcher<Node*>& lhs_matcher,
287 const Matcher<Node*>& rhs_matcher); 285 const Matcher<Node*>& rhs_matcher);
288 Matcher<Node*> IsInt32Sub(const Matcher<Node*>& lhs_matcher, 286 Matcher<Node*> IsInt32Sub(const Matcher<Node*>& lhs_matcher,
289 const Matcher<Node*>& rhs_matcher); 287 const Matcher<Node*>& rhs_matcher);
290 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher, 288 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher,
291 const Matcher<Node*>& rhs_matcher); 289 const Matcher<Node*>& rhs_matcher);
292 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher, 290 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher,
293 const Matcher<Node*>& rhs_matcher); 291 const Matcher<Node*>& rhs_matcher);
294 Matcher<Node*> IsInt32LessThan(const Matcher<Node*>& lhs_matcher, 292 Matcher<Node*> IsInt32LessThan(const Matcher<Node*>& lhs_matcher,
295 const Matcher<Node*>& rhs_matcher); 293 const Matcher<Node*>& rhs_matcher);
296 Matcher<Node*> IsUint32LessThan(const Matcher<Node*>& lhs_matcher, 294 Matcher<Node*> IsUint32LessThan(const Matcher<Node*>& lhs_matcher,
297 const Matcher<Node*>& rhs_matcher); 295 const Matcher<Node*>& rhs_matcher);
298 Matcher<Node*> IsUint32LessThanOrEqual(const Matcher<Node*>& lhs_matcher, 296 Matcher<Node*> IsUint32LessThanOrEqual(const Matcher<Node*>& lhs_matcher,
299 const Matcher<Node*>& rhs_matcher); 297 const Matcher<Node*>& rhs_matcher);
300 Matcher<Node*> IsInt64Add(const Matcher<Node*>& lhs_matcher, 298 Matcher<Node*> IsInt64Add(const Matcher<Node*>& lhs_matcher,
301 const Matcher<Node*>& rhs_matcher); 299 const Matcher<Node*>& rhs_matcher);
302 Matcher<Node*> IsInt64Sub(const Matcher<Node*>& lhs_matcher, 300 Matcher<Node*> IsInt64Sub(const Matcher<Node*>& lhs_matcher,
303 const Matcher<Node*>& rhs_matcher); 301 const Matcher<Node*>& rhs_matcher);
304 Matcher<Node*> IsInt64Mul(const Matcher<Node*>& lhs_matcher,
305 const Matcher<Node*>& rhs_matcher);
306 Matcher<Node*> IsJSAdd(const Matcher<Node*>& lhs_matcher, 302 Matcher<Node*> IsJSAdd(const Matcher<Node*>& lhs_matcher,
307 const Matcher<Node*>& rhs_matcher); 303 const Matcher<Node*>& rhs_matcher);
308 Matcher<Node*> IsChangeFloat64ToInt32(const Matcher<Node*>& input_matcher); 304 Matcher<Node*> IsChangeFloat64ToInt32(const Matcher<Node*>& input_matcher);
309 Matcher<Node*> IsChangeFloat64ToUint32(const Matcher<Node*>& input_matcher); 305 Matcher<Node*> IsChangeFloat64ToUint32(const Matcher<Node*>& input_matcher);
310 Matcher<Node*> IsChangeInt32ToFloat64(const Matcher<Node*>& input_matcher); 306 Matcher<Node*> IsChangeInt32ToFloat64(const Matcher<Node*>& input_matcher);
311 Matcher<Node*> IsChangeInt32ToInt64(const Matcher<Node*>& input_matcher); 307 Matcher<Node*> IsChangeInt32ToInt64(const Matcher<Node*>& input_matcher);
312 Matcher<Node*> IsChangeUint32ToFloat64(const Matcher<Node*>& input_matcher); 308 Matcher<Node*> IsChangeUint32ToFloat64(const Matcher<Node*>& input_matcher);
313 Matcher<Node*> IsChangeUint32ToUint64(const Matcher<Node*>& input_matcher); 309 Matcher<Node*> IsChangeUint32ToUint64(const Matcher<Node*>& input_matcher);
314 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher); 310 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher);
315 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher); 311 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher);
316 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher); 312 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher);
317 Matcher<Node*> IsRoundInt64ToFloat64(const Matcher<Node*>& input_matcher);
318 Matcher<Node*> IsFloat32Max(const Matcher<Node*>& lhs_matcher, 313 Matcher<Node*> IsFloat32Max(const Matcher<Node*>& lhs_matcher,
319 const Matcher<Node*>& rhs_matcher); 314 const Matcher<Node*>& rhs_matcher);
320 Matcher<Node*> IsFloat32Min(const Matcher<Node*>& lhs_matcher, 315 Matcher<Node*> IsFloat32Min(const Matcher<Node*>& lhs_matcher,
321 const Matcher<Node*>& rhs_matcher); 316 const Matcher<Node*>& rhs_matcher);
322 Matcher<Node*> IsFloat32Abs(const Matcher<Node*>& input_matcher); 317 Matcher<Node*> IsFloat32Abs(const Matcher<Node*>& input_matcher);
323 Matcher<Node*> IsFloat32Equal(const Matcher<Node*>& lhs_matcher, 318 Matcher<Node*> IsFloat32Equal(const Matcher<Node*>& lhs_matcher,
324 const Matcher<Node*>& rhs_matcher); 319 const Matcher<Node*>& rhs_matcher);
325 Matcher<Node*> IsFloat32LessThan(const Matcher<Node*>& lhs_matcher, 320 Matcher<Node*> IsFloat32LessThan(const Matcher<Node*>& lhs_matcher,
326 const Matcher<Node*>& rhs_matcher); 321 const Matcher<Node*>& rhs_matcher);
327 Matcher<Node*> IsFloat32LessThanOrEqual(const Matcher<Node*>& lhs_matcher, 322 Matcher<Node*> IsFloat32LessThanOrEqual(const Matcher<Node*>& lhs_matcher,
(...skipping 24 matching lines...) Expand all
352 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 347 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
353 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 348 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
354 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); 349 Matcher<Node*> IsParameter(const Matcher<int> index_matcher);
355 Matcher<Node*> IsLoadFramePointer(); 350 Matcher<Node*> IsLoadFramePointer();
356 351
357 } // namespace compiler 352 } // namespace compiler
358 } // namespace internal 353 } // namespace internal
359 } // namespace v8 354 } // namespace v8
360 355
361 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 356 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/machine-operator-reducer-unittest.cc ('k') | test/unittests/compiler/node-test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698