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

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

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix GN for realz Created 5 years, 5 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, 127 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
128 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher, 128 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& value3_matcher,
129 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher, 129 const Matcher<Node*>& value4_matcher, const Matcher<Node*>& value5_matcher,
130 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher, 130 const Matcher<Node*>& value6_matcher, const Matcher<Node*>& effect_matcher,
131 const Matcher<Node*>& control_matcher); 131 const Matcher<Node*>& control_matcher);
132 Matcher<Node*> IsTailCall( 132 Matcher<Node*> IsTailCall(
133 const Matcher<CallDescriptor const*>& descriptor_matcher, 133 const Matcher<CallDescriptor const*>& descriptor_matcher,
134 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher, 134 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
135 const Matcher<Node*>& effect_matcher, 135 const Matcher<Node*>& effect_matcher,
136 const Matcher<Node*>& control_matcher); 136 const Matcher<Node*>& control_matcher);
137 Matcher<Node*> IsTailCall(
138 const Matcher<CallDescriptor const*>& descriptor_matcher,
139 const Matcher<Node*>& value0_matcher, const Matcher<Node*>& value1_matcher,
140 const Matcher<Node*>& value2_matcher, const Matcher<Node*>& effect_matcher,
141 const Matcher<Node*>& control_matcher);
137 142
138 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); 143 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher);
139 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher, 144 Matcher<Node*> IsReferenceEqual(const Matcher<Type*>& type_matcher,
140 const Matcher<Node*>& lhs_matcher, 145 const Matcher<Node*>& lhs_matcher,
141 const Matcher<Node*>& rhs_matcher); 146 const Matcher<Node*>& rhs_matcher);
142 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, 147 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher,
143 const Matcher<Node*>& rhs_matcher); 148 const Matcher<Node*>& rhs_matcher);
144 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, 149 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher,
145 const Matcher<Node*>& rhs_matcher); 150 const Matcher<Node*>& rhs_matcher);
146 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, 151 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher, 238 Matcher<Node*> IsInt32Mul(const Matcher<Node*>& lhs_matcher,
234 const Matcher<Node*>& rhs_matcher); 239 const Matcher<Node*>& rhs_matcher);
235 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher, 240 Matcher<Node*> IsInt32MulHigh(const Matcher<Node*>& lhs_matcher,
236 const Matcher<Node*>& rhs_matcher); 241 const Matcher<Node*>& rhs_matcher);
237 Matcher<Node*> IsInt32LessThan(const Matcher<Node*>& lhs_matcher, 242 Matcher<Node*> IsInt32LessThan(const Matcher<Node*>& lhs_matcher,
238 const Matcher<Node*>& rhs_matcher); 243 const Matcher<Node*>& rhs_matcher);
239 Matcher<Node*> IsUint32LessThan(const Matcher<Node*>& lhs_matcher, 244 Matcher<Node*> IsUint32LessThan(const Matcher<Node*>& lhs_matcher,
240 const Matcher<Node*>& rhs_matcher); 245 const Matcher<Node*>& rhs_matcher);
241 Matcher<Node*> IsUint32LessThanOrEqual(const Matcher<Node*>& lhs_matcher, 246 Matcher<Node*> IsUint32LessThanOrEqual(const Matcher<Node*>& lhs_matcher,
242 const Matcher<Node*>& rhs_matcher); 247 const Matcher<Node*>& rhs_matcher);
248 Matcher<Node*> IsInt64Add(const Matcher<Node*>& lhs_matcher,
249 const Matcher<Node*>& rhs_matcher);
243 Matcher<Node*> IsChangeFloat64ToInt32(const Matcher<Node*>& input_matcher); 250 Matcher<Node*> IsChangeFloat64ToInt32(const Matcher<Node*>& input_matcher);
244 Matcher<Node*> IsChangeFloat64ToUint32(const Matcher<Node*>& input_matcher); 251 Matcher<Node*> IsChangeFloat64ToUint32(const Matcher<Node*>& input_matcher);
245 Matcher<Node*> IsChangeInt32ToFloat64(const Matcher<Node*>& input_matcher); 252 Matcher<Node*> IsChangeInt32ToFloat64(const Matcher<Node*>& input_matcher);
246 Matcher<Node*> IsChangeInt32ToInt64(const Matcher<Node*>& input_matcher); 253 Matcher<Node*> IsChangeInt32ToInt64(const Matcher<Node*>& input_matcher);
247 Matcher<Node*> IsChangeUint32ToFloat64(const Matcher<Node*>& input_matcher); 254 Matcher<Node*> IsChangeUint32ToFloat64(const Matcher<Node*>& input_matcher);
248 Matcher<Node*> IsChangeUint32ToUint64(const Matcher<Node*>& input_matcher); 255 Matcher<Node*> IsChangeUint32ToUint64(const Matcher<Node*>& input_matcher);
249 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher); 256 Matcher<Node*> IsTruncateFloat64ToFloat32(const Matcher<Node*>& input_matcher);
250 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher); 257 Matcher<Node*> IsTruncateFloat64ToInt32(const Matcher<Node*>& input_matcher);
251 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher); 258 Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher);
252 Matcher<Node*> IsFloat32Max(const Matcher<Node*>& lhs_matcher, 259 Matcher<Node*> IsFloat32Max(const Matcher<Node*>& lhs_matcher,
(...skipping 25 matching lines...) Expand all
278 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher, 285 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher,
279 const Matcher<Node*>& rhs_matcher); 286 const Matcher<Node*>& rhs_matcher);
280 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, 287 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher,
281 const Matcher<Node*>& context_matcher, 288 const Matcher<Node*>& context_matcher,
282 const Matcher<Node*>& effect_matcher, 289 const Matcher<Node*>& effect_matcher,
283 const Matcher<Node*>& control_matcher); 290 const Matcher<Node*>& control_matcher);
284 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, 291 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher,
285 const Matcher<Node*>& context_matcher); 292 const Matcher<Node*>& context_matcher);
286 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 293 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
287 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 294 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
295 Matcher<Node*> IsParameter(const Matcher<int> index_matcher);
296 Matcher<Node*> IsLoadFramePointer();
288 297
289 } // namespace compiler 298 } // namespace compiler
290 } // namespace internal 299 } // namespace internal
291 } // namespace v8 300 } // namespace v8
292 301
293 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 302 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/interpreter-assembler-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