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/change-lowering.h" | 5 #include "src/compiler/change-lowering.h" |
| 6 #include "src/compiler/graph-unittest.h" |
6 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
7 #include "src/compiler/node-properties-inl.h" | 8 #include "src/compiler/node-properties-inl.h" |
8 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
9 #include "src/compiler/typer.h" | 10 #include "src/compiler/typer.h" |
10 #include "test/compiler-unittests/graph-unittest.h" | |
11 #include "testing/gmock-support.h" | 11 #include "testing/gmock-support.h" |
12 | 12 |
13 using testing::_; | 13 using testing::_; |
14 using testing::AllOf; | 14 using testing::AllOf; |
15 using testing::Capture; | 15 using testing::Capture; |
16 using testing::CaptureEq; | 16 using testing::CaptureEq; |
17 | 17 |
18 namespace v8 { | 18 namespace v8 { |
19 namespace internal { | 19 namespace internal { |
20 namespace compiler { | 20 namespace compiler { |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 IsIfTrue(AllOf(CaptureEq(&branch), | 469 IsIfTrue(AllOf(CaptureEq(&branch), |
470 IsBranch(IsUint32LessThanOrEqual( | 470 IsBranch(IsUint32LessThanOrEqual( |
471 val, IsInt32Constant(SmiMaxValue())), | 471 val, IsInt32Constant(SmiMaxValue())), |
472 graph()->start()))), | 472 graph()->start()))), |
473 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch)))))); | 473 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch)))))); |
474 } | 474 } |
475 | 475 |
476 } // namespace compiler | 476 } // namespace compiler |
477 } // namespace internal | 477 } // namespace internal |
478 } // namespace v8 | 478 } // namespace v8 |
OLD | NEW |