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

Side by Side Diff: test/unittests/compiler/graph-unittest.cc

Issue 648663002: [turbofan] Optimize Uint32LessThan with Word32Sar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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 "test/unittests/compiler/graph-unittest.h" 5 #include "test/unittests/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 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 IS_BINOP_MATCHER(Word32Sar) 942 IS_BINOP_MATCHER(Word32Sar)
943 IS_BINOP_MATCHER(Word32Shl) 943 IS_BINOP_MATCHER(Word32Shl)
944 IS_BINOP_MATCHER(Word32Ror) 944 IS_BINOP_MATCHER(Word32Ror)
945 IS_BINOP_MATCHER(Word32Equal) 945 IS_BINOP_MATCHER(Word32Equal)
946 IS_BINOP_MATCHER(Word64And) 946 IS_BINOP_MATCHER(Word64And)
947 IS_BINOP_MATCHER(Word64Sar) 947 IS_BINOP_MATCHER(Word64Sar)
948 IS_BINOP_MATCHER(Word64Shl) 948 IS_BINOP_MATCHER(Word64Shl)
949 IS_BINOP_MATCHER(Word64Equal) 949 IS_BINOP_MATCHER(Word64Equal)
950 IS_BINOP_MATCHER(Int32AddWithOverflow) 950 IS_BINOP_MATCHER(Int32AddWithOverflow)
951 IS_BINOP_MATCHER(Int32Mul) 951 IS_BINOP_MATCHER(Int32Mul)
952 IS_BINOP_MATCHER(Uint32LessThan)
952 IS_BINOP_MATCHER(Uint32LessThanOrEqual) 953 IS_BINOP_MATCHER(Uint32LessThanOrEqual)
953 #undef IS_BINOP_MATCHER 954 #undef IS_BINOP_MATCHER
954 955
955 956
956 #define IS_UNOP_MATCHER(Name) \ 957 #define IS_UNOP_MATCHER(Name) \
957 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ 958 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \
958 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ 959 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \
959 } 960 }
960 IS_UNOP_MATCHER(ChangeFloat64ToInt32) 961 IS_UNOP_MATCHER(ChangeFloat64ToInt32)
961 IS_UNOP_MATCHER(ChangeFloat64ToUint32) 962 IS_UNOP_MATCHER(ChangeFloat64ToUint32)
962 IS_UNOP_MATCHER(ChangeInt32ToFloat64) 963 IS_UNOP_MATCHER(ChangeInt32ToFloat64)
963 IS_UNOP_MATCHER(ChangeInt32ToInt64) 964 IS_UNOP_MATCHER(ChangeInt32ToInt64)
964 IS_UNOP_MATCHER(ChangeUint32ToFloat64) 965 IS_UNOP_MATCHER(ChangeUint32ToFloat64)
965 IS_UNOP_MATCHER(ChangeUint32ToUint64) 966 IS_UNOP_MATCHER(ChangeUint32ToUint64)
966 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) 967 IS_UNOP_MATCHER(TruncateFloat64ToFloat32)
967 IS_UNOP_MATCHER(TruncateFloat64ToInt32) 968 IS_UNOP_MATCHER(TruncateFloat64ToInt32)
968 IS_UNOP_MATCHER(TruncateInt64ToInt32) 969 IS_UNOP_MATCHER(TruncateInt64ToInt32)
969 IS_UNOP_MATCHER(Float64Sqrt) 970 IS_UNOP_MATCHER(Float64Sqrt)
970 #undef IS_UNOP_MATCHER 971 #undef IS_UNOP_MATCHER
971 972
972 } // namespace compiler 973 } // namespace compiler
973 } // namespace internal 974 } // namespace internal
974 } // namespace v8 975 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/graph-unittest.h ('k') | test/unittests/compiler/machine-operator-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698