OLD | NEW |
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, | 346 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, |
347 const Matcher<Node*>& context_matcher, | 347 const Matcher<Node*>& context_matcher, |
348 const Matcher<Node*>& effect_matcher, | 348 const Matcher<Node*>& effect_matcher, |
349 const Matcher<Node*>& control_matcher); | 349 const Matcher<Node*>& control_matcher); |
350 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, | 350 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, |
351 const Matcher<Node*>& context_matcher); | 351 const Matcher<Node*>& context_matcher); |
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 Matcher<Node*> IsJSLoadGlobal(const Handle<Name> name, | |
357 const TypeofMode typeof_mode, | |
358 const Matcher<Node*>& feedback_vector_matcher, | |
359 const Matcher<Node*>& effect_matcher, | |
360 const Matcher<Node*>& control_matcher); | |
361 Matcher<Node*> IsJSStoreGlobal(const Handle<Name> name, | |
362 const Matcher<Node*>& value, | |
363 const Matcher<Node*>& feedback_vector_matcher, | |
364 const Matcher<Node*>& effect_matcher, | |
365 const Matcher<Node*>& control_matcher); | |
366 Matcher<Node*> IsJSLoadNamed(const Handle<Name> name, | |
367 const Matcher<Node*>& object_value_matcher, | |
368 const Matcher<Node*>& feedback_vector_matcher, | |
369 const Matcher<Node*>& effect_matcher, | |
370 const Matcher<Node*>& control_matcher); | |
371 Matcher<Node*> IsJSLoadProperty(const Matcher<Node*>& object_matcher, | |
372 const Matcher<Node*>& key_matcher, | |
373 const Matcher<Node*>& feedback_vector_matcher, | |
374 const Matcher<Node*>& effect_matcher, | |
375 const Matcher<Node*>& control_matcher); | |
376 Matcher<Node*> IsJSStoreNamed(const Handle<Name> name, | |
377 const Matcher<Node*>& object_matcher, | |
378 const Matcher<Node*>& value_matcher, | |
379 const Matcher<Node*>& feedback_vector_matcher, | |
380 const Matcher<Node*>& effect_matcher, | |
381 const Matcher<Node*>& control_matcher); | |
382 Matcher<Node*> IsJSStoreProperty(const Matcher<Node*>& object_matcher, | |
383 const Matcher<Node*>& key_matcher, | |
384 const Matcher<Node*>& value_matcher, | |
385 const Matcher<Node*>& feedback_vector_matcher, | |
386 const Matcher<Node*>& effect_matcher, | |
387 const Matcher<Node*>& control_matcher); | |
388 Matcher<Node*> IsJSCallConstruct(std::vector<Matcher<Node*>> value_matchers, | |
389 const Matcher<Node*>& effect_matcher, | |
390 const Matcher<Node*>& control_matcher); | |
391 Matcher<Node*> IsJSCallFunction(std::vector<Matcher<Node*>> value_matchers, | |
392 const Matcher<Node*>& effect_matcher, | |
393 const Matcher<Node*>& control_matcher); | |
394 Matcher<Node*> IsJSCallRuntime(std::vector<Matcher<Node*>> value_matchers, | |
395 const Matcher<Node*>& effect_matcher, | |
396 const Matcher<Node*>& control_matcher); | |
397 Matcher<Node*> IsJSUnaryNot(const Matcher<Node*>& value_matcher); | |
398 Matcher<Node*> IsJSTypeOf(const Matcher<Node*>& value_matcher); | |
399 Matcher<Node*> IsJSDeleteProperty(const Matcher<Node*>& object_value_matcher, | |
400 const Matcher<Node*>& key_matcher, | |
401 const Matcher<Node*>& effect_matcher, | |
402 const Matcher<Node*>& control_matcher); | |
403 | 356 |
404 } // namespace compiler | 357 } // namespace compiler |
405 } // namespace internal | 358 } // namespace internal |
406 } // namespace v8 | 359 } // namespace v8 |
407 | 360 |
408 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 361 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |