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/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 // Forward declarations. | 15 // Forward declarations. |
16 class ExternalReference; | 16 class ExternalReference; |
| 17 template <typename T> |
| 18 class Handle; |
17 class HeapObject; | 19 class HeapObject; |
18 template <class T> | |
19 class Unique; | |
20 template <class> | 20 template <class> |
21 class TypeImpl; | 21 class TypeImpl; |
22 struct ZoneTypeConfig; | 22 struct ZoneTypeConfig; |
23 typedef TypeImpl<ZoneTypeConfig> Type; | 23 typedef TypeImpl<ZoneTypeConfig> Type; |
24 | 24 |
25 namespace compiler { | 25 namespace compiler { |
26 | 26 |
27 // Forward declarations. | 27 // Forward declarations. |
28 class BufferAccess; | 28 class BufferAccess; |
29 class CallDescriptor; | 29 class CallDescriptor; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher); | 66 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher); |
67 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher, | 67 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher, |
68 const Matcher<Node*>& effect_matcher); | 68 const Matcher<Node*>& effect_matcher); |
69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, | 69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, |
70 const Matcher<Node*>& effect_matcher, | 70 const Matcher<Node*>& effect_matcher, |
71 const Matcher<Node*>& control_matcher); | 71 const Matcher<Node*>& control_matcher); |
72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, | 72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, |
73 const Matcher<Node*>& control_matcher); | 73 const Matcher<Node*>& control_matcher); |
74 Matcher<Node*> IsExternalConstant( | 74 Matcher<Node*> IsExternalConstant( |
75 const Matcher<ExternalReference>& value_matcher); | 75 const Matcher<ExternalReference>& value_matcher); |
76 Matcher<Node*> IsHeapConstant( | 76 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); |
77 const Matcher<Unique<HeapObject> >& value_matcher); | |
78 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); | 77 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); |
79 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); | 78 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); |
80 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); | 79 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); |
81 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); | 80 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); |
82 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); | 81 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); |
83 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher, | 82 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher, |
84 const Matcher<Node*>& value0_matcher, | 83 const Matcher<Node*>& value0_matcher, |
85 const Matcher<Node*>& value1_matcher, | 84 const Matcher<Node*>& value1_matcher, |
86 const Matcher<Node*>& value2_matcher); | 85 const Matcher<Node*>& value2_matcher); |
87 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, | 86 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 342 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
344 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 343 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
345 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 344 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
346 Matcher<Node*> IsLoadFramePointer(); | 345 Matcher<Node*> IsLoadFramePointer(); |
347 | 346 |
348 } // namespace compiler | 347 } // namespace compiler |
349 } // namespace internal | 348 } // namespace internal |
350 } // namespace v8 | 349 } // namespace v8 |
351 | 350 |
352 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 351 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |