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

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

Issue 487723002: [turbofan] Add proper conversion operators for int32<->int64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/compiler-unittests/graph-unittest.h" 5 #include "test/compiler-unittests/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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 IS_BINOP_MATCHER(Word64Shl) 669 IS_BINOP_MATCHER(Word64Shl)
670 IS_BINOP_MATCHER(Word64Equal) 670 IS_BINOP_MATCHER(Word64Equal)
671 IS_BINOP_MATCHER(Int32AddWithOverflow) 671 IS_BINOP_MATCHER(Int32AddWithOverflow)
672 #undef IS_BINOP_MATCHER 672 #undef IS_BINOP_MATCHER
673 673
674 674
675 #define IS_UNOP_MATCHER(Name) \ 675 #define IS_UNOP_MATCHER(Name) \
676 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ 676 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \
677 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ 677 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \
678 } 678 }
679 IS_UNOP_MATCHER(ConvertInt64ToInt32)
680 IS_UNOP_MATCHER(ChangeFloat64ToInt32) 679 IS_UNOP_MATCHER(ChangeFloat64ToInt32)
681 IS_UNOP_MATCHER(ChangeInt32ToFloat64) 680 IS_UNOP_MATCHER(ChangeInt32ToFloat64)
681 IS_UNOP_MATCHER(ChangeInt32ToInt64)
682 IS_UNOP_MATCHER(ChangeUint32ToUint64)
683 IS_UNOP_MATCHER(TruncateInt64ToInt32)
682 #undef IS_UNOP_MATCHER 684 #undef IS_UNOP_MATCHER
683 685
684 } // namespace compiler 686 } // namespace compiler
685 } // namespace internal 687 } // namespace internal
686 } // namespace v8 688 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698