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/unittests/compiler/node-test-utils.h" | 5 #include "test/unittests/compiler/node-test-utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 return MakeMatcher( | 1783 return MakeMatcher( |
1784 new IsConstantMatcher<double>(IrOpcode::kFloat64Constant, value_matcher)); | 1784 new IsConstantMatcher<double>(IrOpcode::kFloat64Constant, value_matcher)); |
1785 } | 1785 } |
1786 | 1786 |
1787 | 1787 |
1788 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher) { | 1788 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher) { |
1789 return MakeMatcher( | 1789 return MakeMatcher( |
1790 new IsConstantMatcher<double>(IrOpcode::kNumberConstant, value_matcher)); | 1790 new IsConstantMatcher<double>(IrOpcode::kNumberConstant, value_matcher)); |
1791 } | 1791 } |
1792 | 1792 |
| 1793 Matcher<Node*> IsPointerConstant(const Matcher<intptr_t>& value_matcher) { |
| 1794 return MakeMatcher(new IsConstantMatcher<intptr_t>(IrOpcode::kPointerConstant, |
| 1795 value_matcher)); |
| 1796 } |
1793 | 1797 |
1794 Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher, | 1798 Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher, |
1795 const Matcher<Node*>& value0_matcher, | 1799 const Matcher<Node*>& value0_matcher, |
1796 const Matcher<Node*>& value1_matcher, | 1800 const Matcher<Node*>& value1_matcher, |
1797 const Matcher<Node*>& value2_matcher) { | 1801 const Matcher<Node*>& value2_matcher) { |
1798 return MakeMatcher(new IsSelectMatcher(type_matcher, value0_matcher, | 1802 return MakeMatcher(new IsSelectMatcher(type_matcher, value0_matcher, |
1799 value1_matcher, value2_matcher)); | 1803 value1_matcher, value2_matcher)); |
1800 } | 1804 } |
1801 | 1805 |
1802 | 1806 |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2379 IS_UNOP_MATCHER(StringFromCharCode) | 2383 IS_UNOP_MATCHER(StringFromCharCode) |
2380 IS_UNOP_MATCHER(Word32Clz) | 2384 IS_UNOP_MATCHER(Word32Clz) |
2381 IS_UNOP_MATCHER(Word32Ctz) | 2385 IS_UNOP_MATCHER(Word32Ctz) |
2382 IS_UNOP_MATCHER(Word32Popcnt) | 2386 IS_UNOP_MATCHER(Word32Popcnt) |
2383 IS_UNOP_MATCHER(Word32ReverseBytes) | 2387 IS_UNOP_MATCHER(Word32ReverseBytes) |
2384 #undef IS_UNOP_MATCHER | 2388 #undef IS_UNOP_MATCHER |
2385 | 2389 |
2386 } // namespace compiler | 2390 } // namespace compiler |
2387 } // namespace internal | 2391 } // namespace internal |
2388 } // namespace v8 | 2392 } // namespace v8 |
OLD | NEW |