Index: test/unittests/compiler/graph-unittest.cc |
diff --git a/src/compiler/graph-unittest.cc b/test/unittests/compiler/graph-unittest.cc |
similarity index 93% |
rename from src/compiler/graph-unittest.cc |
rename to test/unittests/compiler/graph-unittest.cc |
index 7fa97f18e450fa27257adc423733dccc5af20416..ee00889d218d14d36852f826dc8b54c4365b2cf4 100644 |
--- a/src/compiler/graph-unittest.cc |
+++ b/test/unittests/compiler/graph-unittest.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "src/compiler/graph-unittest.h" |
+#include "test/unittests/compiler/graph-unittest.h" |
#include <ostream> // NOLINT(readability/streams) |
@@ -122,8 +122,8 @@ class NodeMatcher : public MatcherInterface<Node*> { |
*os << "is a " << IrOpcode::Mnemonic(opcode_) << " node"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
if (node == NULL) { |
*listener << "which is NULL"; |
return false; |
@@ -158,8 +158,8 @@ class IsBranchMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), |
"value", value_matcher_, listener) && |
@@ -190,8 +190,8 @@ class IsMergeMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetControlInput(node, 0), |
"control0", control0_matcher_, listener) && |
@@ -218,8 +218,8 @@ class IsControl1Matcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetControlInput(node), |
"control", control_matcher_, listener)); |
@@ -247,8 +247,8 @@ class IsFinishMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), |
"value", value_matcher_, listener) && |
@@ -275,8 +275,8 @@ class IsConstantMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(OpParameter<T>(node), "value", value_matcher_, |
listener)); |
@@ -312,8 +312,8 @@ class IsPhiMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(OpParameter<MachineType>(node), "type", |
type_matcher_, listener) && |
@@ -350,8 +350,8 @@ class IsProjectionMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(OpParameter<size_t>(node), "index", |
index_matcher_, listener) && |
@@ -400,8 +400,8 @@ class IsCallMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(OpParameter<CallDescriptor*>(node), |
"descriptor", descriptor_matcher_, listener) && |
@@ -455,8 +455,8 @@ class IsLoadMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(OpParameter<LoadRepresentation>(node), "rep", |
rep_matcher_, listener) && |
@@ -513,8 +513,8 @@ class IsStoreMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain( |
OpParameter<StoreRepresentation>(node).machine_type(), "type", |
@@ -562,8 +562,8 @@ class IsBinopMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), "lhs", |
lhs_matcher_, listener) && |
@@ -589,8 +589,8 @@ class IsUnopMatcher FINAL : public NodeMatcher { |
*os << ")"; |
} |
- virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const |
- OVERRIDE { |
+ virtual bool MatchAndExplain(Node* node, |
+ MatchResultListener* listener) const OVERRIDE { |
return (NodeMatcher::MatchAndExplain(node, listener) && |
PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), |
"input", input_matcher_, listener)); |