| 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/unittests/compiler/graph-unittest.h" | |
| 6 | |
| 7 #include "src/compiler/js-builtin-reducer.h" | 5 #include "src/compiler/js-builtin-reducer.h" |
| 8 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
| 10 #include "src/compiler/typer.h" | 8 #include "src/compiler/typer.h" |
| 9 #include "test/unittests/compiler/graph-unittest.h" |
| 10 #include "test/unittests/compiler/node-test-utils.h" |
| 11 #include "testing/gmock-support.h" | 11 #include "testing/gmock-support.h" |
| 12 | 12 |
| 13 using testing::Capture; | 13 using testing::Capture; |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 namespace compiler { | 17 namespace compiler { |
| 18 | 18 |
| 19 class JSBuiltinReducerTest : public TypedGraphTest { | 19 class JSBuiltinReducerTest : public TypedGraphTest { |
| 20 public: | 20 public: |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 Reduction r = Reduce(call); | 233 Reduction r = Reduce(call); |
| 234 | 234 |
| 235 ASSERT_TRUE(r.Changed()); | 235 ASSERT_TRUE(r.Changed()); |
| 236 EXPECT_THAT(r.replacement(), IsTruncateFloat64ToFloat32(p0)); | 236 EXPECT_THAT(r.replacement(), IsTruncateFloat64ToFloat32(p0)); |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace compiler | 240 } // namespace compiler |
| 241 } // namespace internal | 241 } // namespace internal |
| 242 } // namespace v8 | 242 } // namespace v8 |
| OLD | NEW |