| 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 class HeapObject; | 17 class HeapObject; |
| 18 template <class T> | 18 template <class T> |
| 19 class Unique; | 19 class Unique; |
| 20 template <class> | 20 template <class> |
| 21 class TypeImpl; | 21 class TypeImpl; |
| 22 struct ZoneTypeConfig; | 22 struct ZoneTypeConfig; |
| 23 typedef TypeImpl<ZoneTypeConfig> Type; | 23 typedef TypeImpl<ZoneTypeConfig> Type; |
| 24 | 24 |
| 25 namespace compiler { | 25 namespace compiler { |
| 26 | 26 |
| 27 // Forward declarations. | 27 // Forward declarations. |
| 28 class BufferAccess; | 28 class BufferAccess; |
| 29 class CallDescriptor; | 29 class CallDescriptor; |
| 30 class ContextAccess; |
| 30 struct ElementAccess; | 31 struct ElementAccess; |
| 31 struct FieldAccess; | 32 struct FieldAccess; |
| 32 class Node; | 33 class Node; |
| 33 | 34 |
| 34 | 35 |
| 35 using ::testing::Matcher; | 36 using ::testing::Matcher; |
| 36 | 37 |
| 37 | 38 |
| 38 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher); | 39 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher); |
| 39 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, | 40 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 Matcher<Node*> IsFloat64ExtractLowWord32(const Matcher<Node*>& input_matcher); | 258 Matcher<Node*> IsFloat64ExtractLowWord32(const Matcher<Node*>& input_matcher); |
| 258 Matcher<Node*> IsFloat64ExtractHighWord32(const Matcher<Node*>& input_matcher); | 259 Matcher<Node*> IsFloat64ExtractHighWord32(const Matcher<Node*>& input_matcher); |
| 259 Matcher<Node*> IsFloat64InsertLowWord32(const Matcher<Node*>& lhs_matcher, | 260 Matcher<Node*> IsFloat64InsertLowWord32(const Matcher<Node*>& lhs_matcher, |
| 260 const Matcher<Node*>& rhs_matcher); | 261 const Matcher<Node*>& rhs_matcher); |
| 261 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher, | 262 Matcher<Node*> IsFloat64InsertHighWord32(const Matcher<Node*>& lhs_matcher, |
| 262 const Matcher<Node*>& rhs_matcher); | 263 const Matcher<Node*>& rhs_matcher); |
| 263 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, | 264 Matcher<Node*> IsToNumber(const Matcher<Node*>& base_matcher, |
| 264 const Matcher<Node*>& context_matcher, | 265 const Matcher<Node*>& context_matcher, |
| 265 const Matcher<Node*>& effect_matcher, | 266 const Matcher<Node*>& effect_matcher, |
| 266 const Matcher<Node*>& control_matcher); | 267 const Matcher<Node*>& control_matcher); |
| 268 Matcher<Node*> IsLoadContext(const Matcher<ContextAccess>& access_matcher, |
| 269 const Matcher<Node*>& context_matcher); |
| 267 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); | 270 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); |
| 268 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); | 271 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); |
| 269 | 272 |
| 270 } // namespace compiler | 273 } // namespace compiler |
| 271 } // namespace internal | 274 } // namespace internal |
| 272 } // namespace v8 | 275 } // namespace v8 |
| 273 | 276 |
| 274 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ | 277 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ |
| OLD | NEW |