blob: 8592f3056669c569399737748ed159a5394c1a07 [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// 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
3// found in the LICENSE file.
4
5#ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
6#define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
7
8#include "src/compiler/machine-operator.h"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00009#include "src/machine-type.h"
Emily Bernierd0a1eb72015-03-24 16:35:39 -040010#include "testing/gmock/include/gmock/gmock.h"
11
12namespace v8 {
13namespace internal {
14
15// Forward declarations.
16class ExternalReference;
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000017template <typename T>
18class Handle;
Emily Bernierd0a1eb72015-03-24 16:35:39 -040019class HeapObject;
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000020template <class>
21class TypeImpl;
22enum TypeofMode : int;
23struct ZoneTypeConfig;
24typedef TypeImpl<ZoneTypeConfig> Type;
Emily Bernierd0a1eb72015-03-24 16:35:39 -040025
26namespace compiler {
27
28// Forward declarations.
29class BufferAccess;
30class CallDescriptor;
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000031class ContextAccess;
Emily Bernierd0a1eb72015-03-24 16:35:39 -040032struct ElementAccess;
33struct FieldAccess;
34class Node;
35
36
37using ::testing::Matcher;
38
39
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000040Matcher<Node*> IsDead();
41Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher);
42Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher,
43 const Matcher<Node*>& control1_matcher);
44Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher,
45 const Matcher<Node*>& control1_matcher,
46 const Matcher<Node*>& control2_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -040047Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher,
48 const Matcher<Node*>& control_matcher);
49Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher,
50 const Matcher<Node*>& control1_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000051Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher,
52 const Matcher<Node*>& control1_matcher,
53 const Matcher<Node*>& control2_matcher);
54Matcher<Node*> IsLoop(const Matcher<Node*>& control0_matcher,
55 const Matcher<Node*>& control1_matcher);
56Matcher<Node*> IsLoop(const Matcher<Node*>& control0_matcher,
57 const Matcher<Node*>& control1_matcher,
58 const Matcher<Node*>& control2_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -040059Matcher<Node*> IsIfTrue(const Matcher<Node*>& control_matcher);
60Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000061Matcher<Node*> IsIfSuccess(const Matcher<Node*>& control_matcher);
62Matcher<Node*> IsSwitch(const Matcher<Node*>& value_matcher,
63 const Matcher<Node*>& control_matcher);
64Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher,
65 const Matcher<Node*>& control_matcher);
66Matcher<Node*> IsIfDefault(const Matcher<Node*>& control_matcher);
67Matcher<Node*> IsBeginRegion(const Matcher<Node*>& effect_matcher);
68Matcher<Node*> IsFinishRegion(const Matcher<Node*>& value_matcher,
69 const Matcher<Node*>& effect_matcher);
70Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher,
71 const Matcher<Node*>& effect_matcher,
72 const Matcher<Node*>& control_matcher);
73Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher,
74 const Matcher<Node*>& control_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -040075Matcher<Node*> IsExternalConstant(
76 const Matcher<ExternalReference>& value_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000077Matcher<Node*> IsHeapConstant(Handle<HeapObject> value);
Emily Bernierd0a1eb72015-03-24 16:35:39 -040078Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher);
79Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
80Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
81Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher);
82Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000083Matcher<Node*> IsSelect(const Matcher<MachineRepresentation>& type_matcher,
Emily Bernierd0a1eb72015-03-24 16:35:39 -040084 const Matcher<Node*>& value0_matcher,
85 const Matcher<Node*>& value1_matcher,
86 const Matcher<Node*>& value2_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000087Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher,
Emily Bernierd0a1eb72015-03-24 16:35:39 -040088 const Matcher<Node*>& value0_matcher,
89 const Matcher<Node*>& value1_matcher,
90 const Matcher<Node*>& merge_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000091Matcher<Node*> IsPhi(const Matcher<MachineRepresentation>& type_matcher,
92 const Matcher<Node*>& value0_matcher,
93 const Matcher<Node*>& value1_matcher,
94 const Matcher<Node*>& value2_matcher,
95 const Matcher<Node*>& merge_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -040096Matcher<Node*> IsEffectPhi(const Matcher<Node*>& effect0_matcher,
97 const Matcher<Node*>& effect1_matcher,
98 const Matcher<Node*>& merge_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000099Matcher<Node*> IsEffectSet(const Matcher<Node*>& effect0_matcher,
100 const Matcher<Node*>& effect1_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400101Matcher<Node*> IsProjection(const Matcher<size_t>& index_matcher,
102 const Matcher<Node*>& base_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000103Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
104 const Matcher<Node*>& value0_matcher,
105 const Matcher<Node*>& effect_matcher,
106 const Matcher<Node*>& control_matcher);
107Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400108 const Matcher<Node*>& value0_matcher,
109 const Matcher<Node*>& value1_matcher,
110 const Matcher<Node*>& effect_matcher,
111 const Matcher<Node*>& control_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000112Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
113 const Matcher<Node*>& value0_matcher,
114 const Matcher<Node*>& value1_matcher,
115 const Matcher<Node*>& value2_matcher,
116 const Matcher<Node*>& effect_matcher,
117 const Matcher<Node*>& control_matcher);
118Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400119 const Matcher<Node*>& value0_matcher,
120 const Matcher<Node*>& value1_matcher,
121 const Matcher<Node*>& value2_matcher,
122 const Matcher<Node*>& value3_matcher,
123 const Matcher<Node*>& effect_matcher,
124 const Matcher<Node*>& control_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000125Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
126 const Matcher<Node*>& value0_matcher,
127 const Matcher<Node*>& value1_matcher,
128 const Matcher<Node*>& value2_matcher,
129 const Matcher<Node*>& value3_matcher,
130 const Matcher<Node*>& value4_matcher,
131 const Matcher<Node*>& effect_matcher,
132 const Matcher<Node*>& control_matcher);
133Matcher<Node*> IsCall(const Matcher<const CallDescriptor*>& descriptor_matcher,
134 const Matcher<Node*>& value0_matcher,
135 const Matcher<Node*>& value1_matcher,
136 const Matcher<Node*>& value2_matcher,
137 const Matcher<Node*>& value3_matcher,
138 const Matcher<Node*>& value4_matcher,
139 const Matcher<Node*>& value5_matcher,
140 const Matcher<Node*>& effect_matcher,
141 const Matcher<Node*>& control_matcher);
142Matcher<Node*> IsCall(
143 const Matcher<const CallDescriptor*>& descriptor_matcher,
144 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
145 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
146 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher,
147 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher,
148 const Matcher<Node*>& control_matcher);
149Matcher<Node*> IsTailCall(
150 const Matcher<CallDescriptor const*>& descriptor_matcher,
151 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
152 const Matcher<Node*>& effect_matcher,
153 const Matcher<Node*>& control_matcher);
154Matcher<Node*> IsTailCall(
155 const Matcher<CallDescriptor const*>& descriptor_matcher,
156 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
157 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& effect_matcher,
158 const Matcher<Node*>& control_matcher);
159Matcher<Node*> IsTailCall(
160 const Matcher<CallDescriptor const*>& descriptor_matcher,
161 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
162 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
163 const Matcher<Node*>& effect_matcher,
164 const Matcher<Node*>& control_matcher);
165Matcher<Node*> IsTailCall(
166 const Matcher<CallDescriptor const*>& descriptor_matcher,
167 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
168 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
169 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& effect_matcher,
170 const Matcher<Node*>& control_matcher);
171Matcher<Node*> IsTailCall(
172 const Matcher<CallDescriptor const*>& descriptor_matcher,
173 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
174 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
175 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher,
176 const Matcher<Node*>& effect_matcher,
177 const Matcher<Node*>& control_matcher);
178Matcher<Node*> IsTailCall(
179 const Matcher<CallDescriptor const*>& descriptor_matcher,
180 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
181 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
182 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher,
183 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher,
184 const Matcher<Node*>& control_matcher);
185Matcher<Node*> IsTailCall(
186 const Matcher<CallDescriptor const*>& descriptor_matcher,
187 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
188 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
189 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher,
190 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& value7_matcher,
191 const Matcher<Node*>& effect_matcher,
192 const Matcher<Node*>& control_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400193
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000194
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400195Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000196Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher,
197 const Matcher<Node*>& lhs_matcher,
198 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400199Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher,
200 const Matcher<Node*>& rhs_matcher);
201Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher,
202 const Matcher<Node*>& rhs_matcher);
203Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher,
204 const Matcher<Node*>& rhs_matcher);
205Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher,
206 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000207Matcher<Node*> IsNumberShiftLeft(const Matcher<Node*>& lhs_matcher,
208 const Matcher<Node*>& rhs_matcher);
209Matcher<Node*> IsNumberShiftRight(const Matcher<Node*>& lhs_matcher,
210 const Matcher<Node*>& rhs_matcher);
211Matcher<Node*> IsNumberShiftRightLogical(const Matcher<Node*>& lhs_matcher,
212 const Matcher<Node*>& rhs_matcher);
213Matcher<Node*> IsAllocate(const Matcher<Node*>& size_matcher,
214 const Matcher<Node*>& effect_matcher,
215 const Matcher<Node*>& control_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400216Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher,
217 const Matcher<Node*>& base_matcher,
218 const Matcher<Node*>& effect_matcher,
219 const Matcher<Node*>& control_matcher);
220Matcher<Node*> IsStoreField(const Matcher<FieldAccess>& access_matcher,
221 const Matcher<Node*>& base_matcher,
222 const Matcher<Node*>& value_matcher,
223 const Matcher<Node*>& effect_matcher,
224 const Matcher<Node*>& control_matcher);
225Matcher<Node*> IsLoadBuffer(const Matcher<BufferAccess>& access_matcher,
226 const Matcher<Node*>& buffer_matcher,
227 const Matcher<Node*>& offset_matcher,
228 const Matcher<Node*>& length_matcher,
229 const Matcher<Node*>& effect_matcher,
230 const Matcher<Node*>& control_matcher);
231Matcher<Node*> IsStoreBuffer(const Matcher<BufferAccess>& access_matcher,
232 const Matcher<Node*>& buffer_matcher,
233 const Matcher<Node*>& offset_matcher,
234 const Matcher<Node*>& length_matcher,
235 const Matcher<Node*>& value_matcher,
236 const Matcher<Node*>& effect_matcher,
237 const Matcher<Node*>& control_matcher);
238Matcher<Node*> IsLoadElement(const Matcher<ElementAccess>& access_matcher,
239 const Matcher<Node*>& base_matcher,
240 const Matcher<Node*>& index_matcher,
241 const Matcher<Node*>& control_matcher,
242 const Matcher<Node*>& effect_matcher);
243Matcher<Node*> IsStoreElement(const Matcher<ElementAccess>& access_matcher,
244 const Matcher<Node*>& base_matcher,
245 const Matcher<Node*>& index_matcher,
246 const Matcher<Node*>& value_matcher,
247 const Matcher<Node*>& effect_matcher,
248 const Matcher<Node*>& control_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000249Matcher<Node*> IsObjectIsSmi(const Matcher<Node*>& value_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400250
251Matcher<Node*> IsLoad(const Matcher<LoadRepresentation>& rep_matcher,
252 const Matcher<Node*>& base_matcher,
253 const Matcher<Node*>& index_matcher,
254 const Matcher<Node*>& effect_matcher,
255 const Matcher<Node*>& control_matcher);
256Matcher<Node*> IsStore(const Matcher<StoreRepresentation>& rep_matcher,
257 const Matcher<Node*>& base_matcher,
258 const Matcher<Node*>& index_matcher,
259 const Matcher<Node*>& value_matcher,
260 const Matcher<Node*>& effect_matcher,
261 const Matcher<Node*>& control_matcher);
262Matcher<Node*> IsWord32And(const Matcher<Node*>& lhs_matcher,
263 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000264Matcher<Node*> IsWord32Or(const Matcher<Node*>& lhs_matcher,
265 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400266Matcher<Node*> IsWord32Sar(const Matcher<Node*>& lhs_matcher,
267 const Matcher<Node*>& rhs_matcher);
268Matcher<Node*> IsWord32Shl(const Matcher<Node*>& lhs_matcher,
269 const Matcher<Node*>& rhs_matcher);
270Matcher<Node*> IsWord32Shr(const Matcher<Node*>& lhs_matcher,
271 const Matcher<Node*>& rhs_matcher);
272Matcher<Node*> IsWord32Ror(const Matcher<Node*>& lhs_matcher,
273 const Matcher<Node*>& rhs_matcher);
274Matcher<Node*> IsWord32Equal(const Matcher<Node*>& lhs_matcher,
275 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000276Matcher<Node*> IsWord32Clz(const Matcher<Node*>& value_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400277Matcher<Node*> IsWord64And(const Matcher<Node*>& lhs_matcher,
278 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000279Matcher<Node*> IsWord64Or(const Matcher<Node*>& lhs_matcher,
280 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400281Matcher<Node*> IsWord64Shl(const Matcher<Node*>& lhs_matcher,
282 const Matcher<Node*>& rhs_matcher);
283Matcher<Node*> IsWord64Sar(const Matcher<Node*>& lhs_matcher,
284 const Matcher<Node*>& rhs_matcher);
285Matcher<Node*> IsWord64Equal(const Matcher<Node*>& lhs_matcher,
286 const Matcher<Node*>& rhs_matcher);
287Matcher<Node*> IsInt32AddWithOverflow(const Matcher<Node*>& lhs_matcher,
288 const Matcher<Node*>& rhs_matcher);
289Matcher<Node*> IsInt32Add(const Matcher<Node*>& lhs_matcher,
290 const Matcher<Node*>& rhs_matcher);
291Matcher<Node*> IsInt32Sub(const Matcher<Node*>& lhs_matcher,
292 const Matcher<Node*>& rhs_matcher);
293Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher,
294 const Matcher<Node*>& rhs_matcher);
295Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher,
296 const Matcher<Node*>& rhs_matcher);
297Matcher<Node*> IsInt32LessThan(const Matcher<Node*>& lhs_matcher,
298 const Matcher<Node*>& rhs_matcher);
299Matcher<Node*> IsUint32LessThan(const Matcher<Node*>& lhs_matcher,
300 const Matcher<Node*>& rhs_matcher);
301Matcher<Node*> IsUint32LessThanOrEqual(const Matcher<Node*>& lhs_matcher,
302 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000303Matcher<Node*> IsInt64Add(const Matcher<Node*>& lhs_matcher,
304 const Matcher<Node*>& rhs_matcher);
305Matcher<Node*> IsInt64Sub(const Matcher<Node*>& lhs_matcher,
306 const Matcher<Node*>& rhs_matcher);
307Matcher<Node*> IsJSAdd(const Matcher<Node*>& lhs_matcher,
308 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400309Matcher<Node*> IsChangeFloat64ToInt32(const Matcher<Node*>& input_matcher);
310Matcher<Node*> IsChangeFloat64ToUint32(const Matcher<Node*>& input_matcher);
311Matcher<Node*> IsChangeInt32ToFloat64(const Matcher<Node*>& input_matcher);
312Matcher<Node*> IsChangeInt32ToInt64(const Matcher<Node*>& input_matcher);
313Matcher<Node*> IsChangeUint32ToFloat64(const Matcher<Node*>& input_matcher);
314Matcher<Node*> IsChangeUint32ToUint64(const Matcher<Node*>& input_matcher);
315Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher);
316Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher);
317Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000318Matcher<Node*> IsFloat32Max(const Matcher<Node*>& lhs_matcher,
319 const Matcher<Node*>& rhs_matcher);
320Matcher<Node*> IsFloat32Min(const Matcher<Node*>& lhs_matcher,
321 const Matcher<Node*>& rhs_matcher);
322Matcher<Node*> IsFloat32Abs(const Matcher<Node*>& input_matcher);
323Matcher<Node*> IsFloat32Equal(const Matcher<Node*>& lhs_matcher,
324 const Matcher<Node*>& rhs_matcher);
325Matcher<Node*> IsFloat32LessThan(const Matcher<Node*>& lhs_matcher,
326 const Matcher<Node*>& rhs_matcher);
327Matcher<Node*> IsFloat32LessThanOrEqual(const Matcher<Node*>& lhs_matcher,
328 const Matcher<Node*>& rhs_matcher);
329Matcher<Node*> IsFloat64Max(const Matcher<Node*>& lhs_matcher,
330 const Matcher<Node*>& rhs_matcher);
331Matcher<Node*> IsFloat64Min(const Matcher<Node*>& lhs_matcher,
332 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400333Matcher<Node*> IsFloat64Sub(const Matcher<Node*>& lhs_matcher,
334 const Matcher<Node*>& rhs_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000335Matcher<Node*> IsFloat64Abs(const Matcher<Node*>& input_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400336Matcher<Node*> IsFloat64Sqrt(const Matcher<Node*>& input_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000337Matcher<Node*> IsFloat64RoundDown(const Matcher<Node*>& input_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400338Matcher<Node*> IsFloat64RoundTruncate(const Matcher<Node*>& input_matcher);
339Matcher<Node*> IsFloat64RoundTiesAway(const Matcher<Node*>& input_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000340Matcher<Node*> IsFloat64ExtractLowWord32(const Matcher<Node*>& input_matcher);
341Matcher<Node*> IsFloat64ExtractHighWord32(const Matcher<Node*>& input_matcher);
342Matcher<Node*> IsFloat64InsertLowWord32(const Matcher<Node*>& lhs_matcher,
343 const Matcher<Node*>& rhs_matcher);
344Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher,
345 const Matcher<Node*>& rhs_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400346Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher,
347 const Matcher<Node*>& context_matcher,
348 const Matcher<Node*>& effect_matcher,
349 const Matcher<Node*>& control_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000350Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher,
351 const Matcher<Node*>& context_matcher);
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400352Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
353Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000354Matcher<Node*> IsParameter(const Matcher<int> index_matcher);
355Matcher<Node*> IsLoadFramePointer();
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400356
357} // namespace compiler
358} // namespace internal
359} // namespace v8
360
361#endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_