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 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
7 | 7 |
8 #include "src/compiler/machine-operator.h" | 8 #include "src/compiler/machine-operator.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Matcher<Node*> IsTypeGuard(const Matcher<Node*>& value_matcher, | 86 Matcher<Node*> IsTypeGuard(const Matcher<Node*>& value_matcher, |
87 const Matcher<Node*>& control_matcher); | 87 const Matcher<Node*>& control_matcher); |
88 Matcher<Node*> IsExternalConstant( | 88 Matcher<Node*> IsExternalConstant( |
89 const Matcher<ExternalReference>& value_matcher); | 89 const Matcher<ExternalReference>& value_matcher); |
90 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); | 90 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); |
91 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); | 91 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); |
92 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); | 92 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); |
93 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); | 93 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); |
94 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); | 94 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); |
95 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); | 95 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); |
| 96 Matcher<Node*> IsPointerConstant(const Matcher<intptr_t>& value_matcher); |
96 Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher, | 97 Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher, |
97 const Matcher<Node*>& value0_matcher, | 98 const Matcher<Node*>& value0_matcher, |
98 const Matcher<Node*>& value1_matcher, | 99 const Matcher<Node*>& value1_matcher, |
99 const Matcher<Node*>& value2_matcher); | 100 const Matcher<Node*>& value2_matcher); |
100 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher, | 101 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher, |
101 const Matcher<Node*>& value0_matcher, | 102 const Matcher<Node*>& value0_matcher, |
102 const Matcher<Node*>& value1_matcher, | 103 const Matcher<Node*>& value1_matcher, |
103 const Matcher<Node*>& merge_matcher); | 104 const Matcher<Node*>& merge_matcher); |
104 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher, | 105 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher, |
105 const Matcher<Node*>& value0_matcher, | 106 const Matcher<Node*>& value0_matcher, |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 const Matcher<Node*>& rhs_matcher); | 468 const Matcher<Node*>& rhs_matcher); |
468 Matcher<Node*> IsWord32ReverseBytes(const Matcher<Node*>& value_matcher); | 469 Matcher<Node*> IsWord32ReverseBytes(const Matcher<Node*>& value_matcher); |
469 | 470 |
470 Matcher<Node*> IsStackSlot(); | 471 Matcher<Node*> IsStackSlot(); |
471 | 472 |
472 } // namespace compiler | 473 } // namespace compiler |
473 } // namespace internal | 474 } // namespace internal |
474 } // namespace v8 | 475 } // namespace v8 |
475 | 476 |
476 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 477 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |