| 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 "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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 new IsConstantMatcher<int32_t>(IrOpcode::kInt32Constant, value_matcher)); | 657 new IsConstantMatcher<int32_t>(IrOpcode::kInt32Constant, value_matcher)); |
| 658 } | 658 } |
| 659 | 659 |
| 660 | 660 |
| 661 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher) { | 661 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher) { |
| 662 return MakeMatcher( | 662 return MakeMatcher( |
| 663 new IsConstantMatcher<int64_t>(IrOpcode::kInt64Constant, value_matcher)); | 663 new IsConstantMatcher<int64_t>(IrOpcode::kInt64Constant, value_matcher)); |
| 664 } | 664 } |
| 665 | 665 |
| 666 | 666 |
| 667 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher) { |
| 668 return MakeMatcher( |
| 669 new IsConstantMatcher<float>(IrOpcode::kFloat32Constant, value_matcher)); |
| 670 } |
| 671 |
| 672 |
| 667 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher) { | 673 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher) { |
| 668 return MakeMatcher( | 674 return MakeMatcher( |
| 669 new IsConstantMatcher<double>(IrOpcode::kFloat64Constant, value_matcher)); | 675 new IsConstantMatcher<double>(IrOpcode::kFloat64Constant, value_matcher)); |
| 670 } | 676 } |
| 671 | 677 |
| 672 | 678 |
| 673 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher) { | 679 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher) { |
| 674 return MakeMatcher( | 680 return MakeMatcher( |
| 675 new IsConstantMatcher<double>(IrOpcode::kNumberConstant, value_matcher)); | 681 new IsConstantMatcher<double>(IrOpcode::kNumberConstant, value_matcher)); |
| 676 } | 682 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 IS_UNOP_MATCHER(ChangeInt32ToInt64) | 762 IS_UNOP_MATCHER(ChangeInt32ToInt64) |
| 757 IS_UNOP_MATCHER(ChangeUint32ToFloat64) | 763 IS_UNOP_MATCHER(ChangeUint32ToFloat64) |
| 758 IS_UNOP_MATCHER(ChangeUint32ToUint64) | 764 IS_UNOP_MATCHER(ChangeUint32ToUint64) |
| 759 IS_UNOP_MATCHER(TruncateFloat64ToInt32) | 765 IS_UNOP_MATCHER(TruncateFloat64ToInt32) |
| 760 IS_UNOP_MATCHER(TruncateInt64ToInt32) | 766 IS_UNOP_MATCHER(TruncateInt64ToInt32) |
| 761 #undef IS_UNOP_MATCHER | 767 #undef IS_UNOP_MATCHER |
| 762 | 768 |
| 763 } // namespace compiler | 769 } // namespace compiler |
| 764 } // namespace internal | 770 } // namespace internal |
| 765 } // namespace v8 | 771 } // namespace v8 |
| OLD | NEW |