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" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 // Forward declarations. | 15 // Forward declarations. |
16 class ExternalReference; | 16 class ExternalReference; |
17 template <typename T> | 17 template <typename T> |
18 class Handle; | 18 class Handle; |
19 class HeapObject; | 19 class HeapObject; |
20 template <class> | 20 template <class> |
21 class TypeImpl; | 21 class TypeImpl; |
| 22 enum TypeofMode : int; |
22 struct ZoneTypeConfig; | 23 struct ZoneTypeConfig; |
23 typedef TypeImpl<ZoneTypeConfig> Type; | 24 typedef TypeImpl<ZoneTypeConfig> Type; |
24 | 25 |
25 namespace compiler { | 26 namespace compiler { |
26 | 27 |
27 // Forward declarations. | 28 // Forward declarations. |
28 class BufferAccess; | 29 class BufferAccess; |
29 class CallDescriptor; | 30 class CallDescriptor; |
30 class ContextAccess; | 31 class ContextAccess; |
31 struct ElementAccess; | 32 struct ElementAccess; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 const Matcher<Node*>& context_matcher); | 356 const Matcher<Node*>& context_matcher); |
356 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 357 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
357 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 358 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
358 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); | 359 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); |
359 Matcher<Node*> IsLoadFramePointer(); | 360 Matcher<Node*> IsLoadFramePointer(); |
360 Matcher<Node*> IsJSLoadNamed(const Handle<Name> name, | 361 Matcher<Node*> IsJSLoadNamed(const Handle<Name> name, |
361 const Matcher<Node*>& object_value_matcher, | 362 const Matcher<Node*>& object_value_matcher, |
362 const Matcher<Node*>& feedback_vector_matcher, | 363 const Matcher<Node*>& feedback_vector_matcher, |
363 const Matcher<Node*>& effect_matcher, | 364 const Matcher<Node*>& effect_matcher, |
364 const Matcher<Node*>& control_matcher); | 365 const Matcher<Node*>& control_matcher); |
| 366 Matcher<Node*> IsJSLoadGlobal(const Handle<Name> name, |
| 367 const TypeofMode typeof_mode, |
| 368 const Matcher<Node*>& feedback_vector_matcher, |
| 369 const Matcher<Node*>& effect_matcher, |
| 370 const Matcher<Node*>& control_matcher); |
| 371 Matcher<Node*> IsJSStoreGlobal(const Handle<Name> name, |
| 372 const Matcher<Node*>& value, |
| 373 const Matcher<Node*>& feedback_vector_matcher, |
| 374 const Matcher<Node*>& effect_matcher, |
| 375 const Matcher<Node*>& control_matcher); |
365 Matcher<Node*> IsJSCallFunction(std::vector<Matcher<Node*>> value_matchers, | 376 Matcher<Node*> IsJSCallFunction(std::vector<Matcher<Node*>> value_matchers, |
366 const Matcher<Node*>& effect_matcher, | 377 const Matcher<Node*>& effect_matcher, |
367 const Matcher<Node*>& control_matcher); | 378 const Matcher<Node*>& control_matcher); |
368 | 379 |
369 } // namespace compiler | 380 } // namespace compiler |
370 } // namespace internal | 381 } // namespace internal |
371 } // namespace v8 | 382 } // namespace v8 |
372 | 383 |
373 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 384 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
OLD | NEW |