| OLD | NEW |
| 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/node-matchers.h" | 5 #include "test/compiler-unittests/node-matchers.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 |
| 11 using testing::MakeMatcher; |
| 11 using testing::MatcherInterface; | 12 using testing::MatcherInterface; |
| 12 using testing::MatchResultListener; | 13 using testing::MatchResultListener; |
| 13 using testing::StringMatchResultListener; | 14 using testing::StringMatchResultListener; |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 | 18 |
| 18 // TODO(bmeurer): Find a new home for these functions. | 19 // TODO(bmeurer): Find a new home for these functions. |
| 19 template <typename T> | 20 template <typename T> |
| 20 inline std::ostream& operator<<(std::ostream& os, | 21 inline std::ostream& operator<<(std::ostream& os, |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 445 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
| 445 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 446 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
| 446 } | 447 } |
| 447 IS_UNOP_MATCHER(ConvertInt64ToInt32) | 448 IS_UNOP_MATCHER(ConvertInt64ToInt32) |
| 448 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 449 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
| 449 #undef IS_UNOP_MATCHER | 450 #undef IS_UNOP_MATCHER |
| 450 | 451 |
| 451 } // namespace compiler | 452 } // namespace compiler |
| 452 } // namespace internal | 453 } // namespace internal |
| 453 } // namespace v8 | 454 } // namespace v8 |
| OLD | NEW |