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

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

Issue 691513002: [turbofan] Introduce new Select operator to improve bounds checking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 30 matching lines...) Expand all
41 const Matcher<Node*>& effect_matcher); 41 const Matcher<Node*>& effect_matcher);
42 Matcher<Node*> IsExternalConstant( 42 Matcher<Node*> IsExternalConstant(
43 const Matcher<ExternalReference>& value_matcher); 43 const Matcher<ExternalReference>& value_matcher);
44 Matcher<Node*> IsHeapConstant( 44 Matcher<Node*> IsHeapConstant(
45 const Matcher<Unique<HeapObject> >& value_matcher); 45 const Matcher<Unique<HeapObject> >& value_matcher);
46 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); 46 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher);
47 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); 47 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
48 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); 48 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
49 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); 49 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher);
50 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); 50 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
51 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher,
52 const Matcher<Node*>& value0_matcher,
53 const Matcher<Node*>& value1_matcher,
54 const Matcher<Node*>& value2_matcher);
51 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, 55 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher,
52 const Matcher<Node*>& value0_matcher, 56 const Matcher<Node*>& value0_matcher,
53 const Matcher<Node*>& value1_matcher, 57 const Matcher<Node*>& value1_matcher,
54 const Matcher<Node*>& merge_matcher); 58 const Matcher<Node*>& merge_matcher);
55 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher, 59 Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher,
56 const Matcher<Node*>& base_matcher); 60 const Matcher<Node*>& base_matcher);
57 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, 61 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher,
58 const Matcher<Node*>& value0_matcher, 62 const Matcher<Node*>& value0_matcher,
59 const Matcher<Node*>& value1_matcher, 63 const Matcher<Node*>& value1_matcher,
60 const Matcher<Node*>& value2_matcher, 64 const Matcher<Node*>& value2_matcher,
61 const Matcher<Node*>& value3_matcher, 65 const Matcher<Node*>& value3_matcher,
62 const Matcher<Node*>& effect_matcher, 66 const Matcher<Node*>& effect_matcher,
63 const Matcher<Node*>& control_matcher); 67 const Matcher<Node*>& control_matcher);
64 68
65 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); 69 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher);
66 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, 70 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher,
67 const Matcher<Node*>& rhs_matcher); 71 const Matcher<Node*>& rhs_matcher);
68 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, 72 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher,
69 const Matcher<Node*>& rhs_matcher); 73 const Matcher<Node*>& rhs_matcher);
70 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, 74 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher,
71 const Matcher<Node*>& rhs_matcher); 75 const Matcher<Node*>& rhs_matcher);
76 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher,
77 const Matcher<Node*>& rhs_matcher);
72 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, 78 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher,
73 const Matcher<Node*>& base_matcher, 79 const Matcher<Node*>& base_matcher,
74 const Matcher<Node*>& effect_matcher, 80 const Matcher<Node*>& effect_matcher,
75 const Matcher<Node*>& control_matcher); 81 const Matcher<Node*>& control_matcher);
76 Matcher<Node*> IsLoadElement(const Matcher<ElementAccess>& access_matcher, 82 Matcher<Node*> IsLoadElement(const Matcher<ElementAccess>& access_matcher,
77 const Matcher<Node*>& base_matcher, 83 const Matcher<Node*>& base_matcher,
78 const Matcher<Node*>& index_matcher, 84 const Matcher<Node*>& index_matcher,
79 const Matcher<Node*>& length_matcher, 85 const Matcher<Node*>& length_matcher,
80 const Matcher<Node*>& effect_matcher); 86 const Matcher<Node*>& effect_matcher);
81 Matcher<Node*> IsStoreElement(const Matcher<ElementAccess>& access_matcher, 87 Matcher<Node*> IsStoreElement(const Matcher<ElementAccess>& access_matcher,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher); 148 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher);
143 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher); 149 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher);
144 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher); 150 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher);
145 Matcher<Node*> IsFloat64Sqrt(const Matcher<Node*>& input_matcher); 151 Matcher<Node*> IsFloat64Sqrt(const Matcher<Node*>& input_matcher);
146 152
147 } // namespace compiler 153 } // namespace compiler
148 } // namespace internal 154 } // namespace internal
149 } // namespace v8 155 } // namespace v8
150 156
151 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 157 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/js-typed-lowering-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