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

Side by Side Diff: src/compiler/graph-unittest.cc

Issue 598523002: Move test for reduction of Math.max to unittest. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/graph-unittest.h ('k') | src/compiler/js-builtin-reducer-unittest.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 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 #include "src/compiler/graph-unittest.h" 5 #include "src/compiler/graph-unittest.h"
6 6
7 #include <ostream> // NOLINT(readability/streams) 7 #include <ostream> // NOLINT(readability/streams)
8 8
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 10
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 value_matcher, effect_matcher, control_matcher)); 736 value_matcher, effect_matcher, control_matcher));
737 } 737 }
738 738
739 739
740 #define IS_BINOP_MATCHER(Name) \ 740 #define IS_BINOP_MATCHER(Name) \
741 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \ 741 Matcher<Node*> Is##Name(const Matcher<Node*>& lhs_matcher, \
742 const Matcher<Node*>& rhs_matcher) { \ 742 const Matcher<Node*>& rhs_matcher) { \
743 return MakeMatcher( \ 743 return MakeMatcher( \
744 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \ 744 new IsBinopMatcher(IrOpcode::k##Name, lhs_matcher, rhs_matcher)); \
745 } 745 }
746 IS_BINOP_MATCHER(NumberLessThan)
746 IS_BINOP_MATCHER(Word32And) 747 IS_BINOP_MATCHER(Word32And)
747 IS_BINOP_MATCHER(Word32Sar) 748 IS_BINOP_MATCHER(Word32Sar)
748 IS_BINOP_MATCHER(Word32Shl) 749 IS_BINOP_MATCHER(Word32Shl)
749 IS_BINOP_MATCHER(Word32Ror) 750 IS_BINOP_MATCHER(Word32Ror)
750 IS_BINOP_MATCHER(Word32Equal) 751 IS_BINOP_MATCHER(Word32Equal)
751 IS_BINOP_MATCHER(Word64And) 752 IS_BINOP_MATCHER(Word64And)
752 IS_BINOP_MATCHER(Word64Sar) 753 IS_BINOP_MATCHER(Word64Sar)
753 IS_BINOP_MATCHER(Word64Shl) 754 IS_BINOP_MATCHER(Word64Shl)
754 IS_BINOP_MATCHER(Word64Equal) 755 IS_BINOP_MATCHER(Word64Equal)
755 IS_BINOP_MATCHER(Int32AddWithOverflow) 756 IS_BINOP_MATCHER(Int32AddWithOverflow)
(...skipping 12 matching lines...) Expand all
768 IS_UNOP_MATCHER(ChangeInt32ToInt64) 769 IS_UNOP_MATCHER(ChangeInt32ToInt64)
769 IS_UNOP_MATCHER(ChangeUint32ToFloat64) 770 IS_UNOP_MATCHER(ChangeUint32ToFloat64)
770 IS_UNOP_MATCHER(ChangeUint32ToUint64) 771 IS_UNOP_MATCHER(ChangeUint32ToUint64)
771 IS_UNOP_MATCHER(TruncateFloat64ToInt32) 772 IS_UNOP_MATCHER(TruncateFloat64ToInt32)
772 IS_UNOP_MATCHER(TruncateInt64ToInt32) 773 IS_UNOP_MATCHER(TruncateInt64ToInt32)
773 #undef IS_UNOP_MATCHER 774 #undef IS_UNOP_MATCHER
774 775
775 } // namespace compiler 776 } // namespace compiler
776 } // namespace internal 777 } // namespace internal
777 } // namespace v8 778 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-unittest.h ('k') | src/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698