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/common-operator.h" | 6 #include "src/compiler/common-operator.h" |
7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
8 #include "src/compiler/node-properties-inl.h" | 8 #include "src/compiler/node-properties-inl.h" |
9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
11 #include "test/compiler-unittests/compiler-unittests.h" | 11 #include "test/compiler-unittests/compiler-unittests.h" |
12 #include "test/compiler-unittests/node-matchers.h" | 12 #include "test/compiler-unittests/node-matchers.h" |
13 #include "testing/gtest-type-names.h" | |
14 | 13 |
15 using testing::_; | 14 using testing::_; |
16 | 15 |
17 namespace v8 { | 16 namespace v8 { |
18 namespace internal { | 17 namespace internal { |
19 namespace compiler { | 18 namespace compiler { |
20 | 19 |
21 template <typename T> | 20 template <typename T> |
22 class ChangeLoweringTest : public CompilerTest { | 21 class ChangeLoweringTest : public CompilerTest { |
23 public: | 22 public: |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 EXPECT_EQ(branch, NodeProperties::GetControlInput(if_false)); | 247 EXPECT_EQ(branch, NodeProperties::GetControlInput(if_false)); |
249 STATIC_ASSERT(kSmiTag == 0); | 248 STATIC_ASSERT(kSmiTag == 0); |
250 STATIC_ASSERT(kSmiTagSize == 1); | 249 STATIC_ASSERT(kSmiTagSize == 1); |
251 EXPECT_THAT(branch, IsBranch(IsWord64And(val, IsInt32Constant(kSmiTagMask)), | 250 EXPECT_THAT(branch, IsBranch(IsWord64And(val, IsInt32Constant(kSmiTagMask)), |
252 graph()->start())); | 251 graph()->start())); |
253 } | 252 } |
254 | 253 |
255 } // namespace compiler | 254 } // namespace compiler |
256 } // namespace internal | 255 } // namespace internal |
257 } // namespace v8 | 256 } // namespace v8 |
OLD | NEW |