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 #include "test/compiler-unittests/node-matchers.h" | 5 #include "test/compiler-unittests/node-matchers.h" |
6 | 6 |
7 #include <ostream> // NOLINT(readability/streams) | 7 #include <ostream> // NOLINT(readability/streams) |
8 | 8 |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 *os << "), effect ("; | 276 *os << "), effect ("; |
277 effect_matcher_.DescribeTo(os); | 277 effect_matcher_.DescribeTo(os); |
278 *os << ") and control ("; | 278 *os << ") and control ("; |
279 control_matcher_.DescribeTo(os); | 279 control_matcher_.DescribeTo(os); |
280 *os << ")"; | 280 *os << ")"; |
281 } | 281 } |
282 | 282 |
283 virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const | 283 virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
284 V8_OVERRIDE { | 284 V8_OVERRIDE { |
285 return (NodeMatcher::MatchAndExplain(node, listener) && | 285 return (NodeMatcher::MatchAndExplain(node, listener) && |
286 PrintMatchAndExplain(OpParameter<StoreRepresentation>(node).rep, | 286 PrintMatchAndExplain( |
287 "type", type_matcher_, listener) && | 287 OpParameter<StoreRepresentation>(node).machine_type, "type", |
| 288 type_matcher_, listener) && |
288 PrintMatchAndExplain( | 289 PrintMatchAndExplain( |
289 OpParameter<StoreRepresentation>(node).write_barrier_kind, | 290 OpParameter<StoreRepresentation>(node).write_barrier_kind, |
290 "write barrier", write_barrier_matcher_, listener) && | 291 "write barrier", write_barrier_matcher_, listener) && |
291 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), "base", | 292 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), "base", |
292 base_matcher_, listener) && | 293 base_matcher_, listener) && |
293 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1), | 294 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1), |
294 "index", index_matcher_, listener) && | 295 "index", index_matcher_, listener) && |
295 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 2), | 296 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 2), |
296 "value", value_matcher_, listener) && | 297 "value", value_matcher_, listener) && |
297 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect", | 298 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ | 447 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ |
447 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ | 448 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ |
448 } | 449 } |
449 IS_UNOP_MATCHER(ConvertInt64ToInt32) | 450 IS_UNOP_MATCHER(ConvertInt64ToInt32) |
450 IS_UNOP_MATCHER(ChangeInt32ToFloat64) | 451 IS_UNOP_MATCHER(ChangeInt32ToFloat64) |
451 #undef IS_UNOP_MATCHER | 452 #undef IS_UNOP_MATCHER |
452 | 453 |
453 } // namespace compiler | 454 } // namespace compiler |
454 } // namespace internal | 455 } // namespace internal |
455 } // namespace v8 | 456 } // namespace v8 |
OLD | NEW |