Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: test/unittests/compiler/node-test-utils.h

Issue 816053002: [turbofan] First version of loop peeling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 17 matching lines...) Expand all
28 class Node; 28 class Node;
29 29
30 30
31 using ::testing::Matcher; 31 using ::testing::Matcher;
32 32
33 33
34 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher, 34 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher,
35 const Matcher<Node*>& control_matcher); 35 const Matcher<Node*>& control_matcher);
36 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher, 36 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher,
37 const Matcher<Node*>& control1_matcher); 37 const Matcher<Node*>& control1_matcher);
38 Matcher<Node*> IsLoop(const Matcher<Node*>& control0_matcher,
39 const Matcher<Node*>& control1_matcher);
40 Matcher<Node*> IsLoop(const Matcher<Node*>& control0_matcher,
41 const Matcher<Node*>& control1_matcher,
42 const Matcher<Node*>& control2_matcher);
38 Matcher<Node*> IsIfTrue(const Matcher<Node*>& control_matcher); 43 Matcher<Node*> IsIfTrue(const Matcher<Node*>& control_matcher);
39 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher); 44 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher);
40 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher); 45 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher);
41 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher, 46 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher,
42 const Matcher<Node*>& effect_matcher); 47 const Matcher<Node*>& effect_matcher);
48 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher,
49 const Matcher<Node*>& effect_matcher,
50 const Matcher<Node*>& control_matcher);
43 Matcher<Node*> IsExternalConstant( 51 Matcher<Node*> IsExternalConstant(
44 const Matcher<ExternalReference>& value_matcher); 52 const Matcher<ExternalReference>& value_matcher);
45 Matcher<Node*> IsHeapConstant( 53 Matcher<Node*> IsHeapConstant(
46 const Matcher<Unique<HeapObject> >& value_matcher); 54 const Matcher<Unique<HeapObject> >& value_matcher);
47 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); 55 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher);
48 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); 56 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
49 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); 57 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
50 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); 58 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher);
51 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); 59 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
52 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher, 60 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher,
53 const Matcher<Node*>& value0_matcher, 61 const Matcher<Node*>& value0_matcher,
54 const Matcher<Node*>& value1_matcher, 62 const Matcher<Node*>& value1_matcher,
55 const Matcher<Node*>& value2_matcher); 63 const Matcher<Node*>& value2_matcher);
56 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, 64 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher,
57 const Matcher<Node*>& value0_matcher, 65 const Matcher<Node*>& value0_matcher,
58 const Matcher<Node*>& value1_matcher, 66 const Matcher<Node*>& value1_matcher,
59 const Matcher<Node*>& merge_matcher); 67 const Matcher<Node*>& merge_matcher);
68 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher,
69 const Matcher<Node*>& value0_matcher,
70 const Matcher<Node*>& value1_matcher,
71 const Matcher<Node*>& value2_matcher,
72 const Matcher<Node*>& merge_matcher);
60 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher, 73 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher,
61 const Matcher<Node*>& effect1_matcher, 74 const Matcher<Node*>& effect1_matcher,
62 const Matcher<Node*>& merge_matcher); 75 const Matcher<Node*>& merge_matcher);
63 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher, 76 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher,
64 const Matcher<Node*>& base_matcher); 77 const Matcher<Node*>& base_matcher);
65 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, 78 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher,
66 const Matcher<Node*>& value0_matcher, 79 const Matcher<Node*>& value0_matcher,
67 const Matcher<Node*>& value1_matcher, 80 const Matcher<Node*>& value1_matcher,
68 const Matcher<Node*>& effect_matcher, 81 const Matcher<Node*>& effect_matcher,
69 const Matcher<Node*>& control_matcher); 82 const Matcher<Node*>& control_matcher);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const Matcher<Node*>& effect_matcher, 200 const Matcher<Node*>& effect_matcher,
188 const Matcher<Node*>& control_matcher); 201 const Matcher<Node*>& control_matcher);
189 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 202 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
190 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 203 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
191 204
192 } // namespace compiler 205 } // namespace compiler
193 } // namespace internal 206 } // namespace internal
194 } // namespace v8 207 } // namespace v8
195 208
196 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 209 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/loop-peeling-unittest.cc ('k') | test/unittests/compiler/node-test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698