| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/effect-control-linearizer.h" | 5 #include "src/compiler/effect-control-linearizer.h" |
| 6 #include "src/compiler/access-builder.h" | 6 #include "src/compiler/access-builder.h" |
| 7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 10 #include "src/compiler/schedule.h" | 10 #include "src/compiler/schedule.h" |
| 11 #include "src/compiler/simplified-operator.h" | 11 #include "src/compiler/simplified-operator.h" |
| 12 #include "test/unittests/compiler/graph-unittest.h" | 12 #include "test/unittests/compiler/graph-unittest.h" |
| 13 #include "test/unittests/compiler/node-test-utils.h" | 13 #include "test/unittests/compiler/node-test-utils.h" |
| 14 #include "test/unittests/test-utils.h" | 14 #include "test/unittests/test-utils.h" |
| 15 #include "testing/gmock-support.h" | 15 #include "testing/gmock-support.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 | 17 |
| 18 namespace v8 { | 18 namespace v8 { |
| 19 namespace internal { | 19 namespace internal { |
| 20 namespace compiler { | 20 namespace compiler { |
| 21 | 21 |
| 22 using testing::Capture; | 22 using testing::Capture; |
| 23 | 23 |
| 24 class EffectControlLinearizerTest : public TypedGraphTest { | 24 class EffectControlLinearizerTest : public GraphTest { |
| 25 public: | 25 public: |
| 26 EffectControlLinearizerTest() | 26 EffectControlLinearizerTest() |
| 27 : TypedGraphTest(3), | 27 : GraphTest(3), |
| 28 machine_(zone()), | 28 machine_(zone()), |
| 29 javascript_(zone()), | 29 javascript_(zone()), |
| 30 simplified_(zone()), | 30 simplified_(zone()), |
| 31 jsgraph_(isolate(), graph(), common(), &javascript_, &simplified_, | 31 jsgraph_(isolate(), graph(), common(), &javascript_, &simplified_, |
| 32 &machine_) {} | 32 &machine_) {} |
| 33 | 33 |
| 34 JSGraph* jsgraph() { return &jsgraph_; } | 34 JSGraph* jsgraph() { return &jsgraph_; } |
| 35 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 35 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
| 36 | 36 |
| 37 private: | 37 private: |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 IsIfTrue(CaptureEq(&branch2_capture))), | 390 IsIfTrue(CaptureEq(&branch2_capture))), |
| 391 IsMerge(IsIfFalse(AllOf(CaptureEq(&branch1_capture), | 391 IsMerge(IsIfFalse(AllOf(CaptureEq(&branch1_capture), |
| 392 IsBranch(cond1, control1))), | 392 IsBranch(cond1, control1))), |
| 393 IsIfFalse(AllOf(CaptureEq(&branch2_capture), | 393 IsIfFalse(AllOf(CaptureEq(&branch2_capture), |
| 394 IsBranch(cond2, control2))))))); | 394 IsBranch(cond2, control2))))))); |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace compiler | 397 } // namespace compiler |
| 398 } // namespace internal | 398 } // namespace internal |
| 399 } // namespace v8 | 399 } // namespace v8 |
| OLD | NEW |