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

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

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years 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/machine-type.h" 9 #include "src/machine-type.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, 73 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher,
74 const Matcher<Node*>& control_matcher); 74 const Matcher<Node*>& control_matcher);
75 Matcher<Node*> IsExternalConstant( 75 Matcher<Node*> IsExternalConstant(
76 const Matcher<ExternalReference>& value_matcher); 76 const Matcher<ExternalReference>& value_matcher);
77 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value); 77 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value);
78 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); 78 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher);
79 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); 79 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
80 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); 80 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
81 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); 81 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher);
82 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); 82 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
83 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher, 83 Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher,
84 const Matcher<Node*>& value0_matcher, 84 const Matcher<Node*>& value0_matcher,
85 const Matcher<Node*>& value1_matcher, 85 const Matcher<Node*>& value1_matcher,
86 const Matcher<Node*>& value2_matcher); 86 const Matcher<Node*>& value2_matcher);
87 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, 87 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher,
88 const Matcher<Node*>& value0_matcher, 88 const Matcher<Node*>& value0_matcher,
89 const Matcher<Node*>& value1_matcher, 89 const Matcher<Node*>& value1_matcher,
90 const Matcher<Node*>& merge_matcher); 90 const Matcher<Node*>& merge_matcher);
91 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, 91 Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher,
92 const Matcher<Node*>& value0_matcher, 92 const Matcher<Node*>& value0_matcher,
93 const Matcher<Node*>& value1_matcher, 93 const Matcher<Node*>& value1_matcher,
94 const Matcher<Node*>& value2_matcher, 94 const Matcher<Node*>& value2_matcher,
95 const Matcher<Node*>& merge_matcher); 95 const Matcher<Node*>& merge_matcher);
96 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher, 96 Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher,
97 const Matcher<Node*>& effect1_matcher, 97 const Matcher<Node*>& effect1_matcher,
98 const Matcher<Node*>& merge_matcher); 98 const Matcher<Node*>& merge_matcher);
99 Matcher<Node*> IsEffectSet(const Matcher<Node*>& effect0_matcher, 99 Matcher<Node*> IsEffectSet(const Matcher<Node*>& effect0_matcher,
100 const Matcher<Node*>& effect1_matcher); 100 const Matcher<Node*>& effect1_matcher);
101 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher, 101 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher,
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 352 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
353 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 353 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
354 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); 354 Matcher<Node*> IsParameter(const Matcher<int> index_matcher);
355 Matcher<Node*> IsLoadFramePointer(); 355 Matcher<Node*> IsLoadFramePointer();
356 356
357 } // namespace compiler 357 } // namespace compiler
358 } // namespace internal 358 } // namespace internal
359 } // namespace v8 359 } // namespace v8
360 360
361 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 361 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/move-optimizer-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