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 "src/compiler/control-equivalence.h" |
5 #include "src/bit-vector.h" | 6 #include "src/bit-vector.h" |
6 #include "src/compiler/control-equivalence.h" | |
7 #include "src/compiler/graph-visualizer.h" | 7 #include "src/compiler/graph-visualizer.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/compiler/source-position.h" | 9 #include "src/compiler/source-position.h" |
10 #include "src/zone-containers.h" | 10 #include "src/zone/zone-containers.h" |
11 #include "test/unittests/compiler/graph-unittest.h" | 11 #include "test/unittests/compiler/graph-unittest.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 #define ASSERT_EQUIVALENCE(...) \ | 17 #define ASSERT_EQUIVALENCE(...) \ |
18 do { \ | 18 do { \ |
19 Node* __n[] = {__VA_ARGS__}; \ | 19 Node* __n[] = {__VA_ARGS__}; \ |
20 ASSERT_TRUE(IsEquivalenceClass(arraysize(__n), __n)); \ | 20 ASSERT_TRUE(IsEquivalenceClass(arraysize(__n), __n)); \ |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 ASSERT_EQUIVALENCE(t2); | 252 ASSERT_EQUIVALENCE(t2); |
253 ASSERT_EQUIVALENCE(f2); | 253 ASSERT_EQUIVALENCE(f2); |
254 ASSERT_EQUIVALENCE(f3); | 254 ASSERT_EQUIVALENCE(f3); |
255 ASSERT_EQUIVALENCE(lp); | 255 ASSERT_EQUIVALENCE(lp); |
256 } | 256 } |
257 | 257 |
258 | 258 |
259 } // namespace compiler | 259 } // namespace compiler |
260 } // namespace internal | 260 } // namespace internal |
261 } // namespace v8 | 261 } // namespace v8 |
OLD | NEW |