| 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/compiler-unittests/instruction-selector-unittest.h" | 5 #include "test/compiler-unittests/instruction-selector-unittest.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 namespace compiler { | 9 namespace compiler { |
| 10 | 10 |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 m.Word32Shr(m.Parameter(0), m.Int32Constant(lsb)))); | 1888 m.Word32Shr(m.Parameter(0), m.Int32Constant(lsb)))); |
| 1889 Stream s = m.Build(ARMv7); | 1889 Stream s = m.Build(ARMv7); |
| 1890 ASSERT_EQ(1U, s.size()); | 1890 ASSERT_EQ(1U, s.size()); |
| 1891 EXPECT_EQ(kArmUbfx, s[0]->arch_opcode()); | 1891 EXPECT_EQ(kArmUbfx, s[0]->arch_opcode()); |
| 1892 ASSERT_EQ(3U, s[0]->InputCount()); | 1892 ASSERT_EQ(3U, s[0]->InputCount()); |
| 1893 EXPECT_EQ(lsb, s.ToInt32(s[0]->InputAt(1))); | 1893 EXPECT_EQ(lsb, s.ToInt32(s[0]->InputAt(1))); |
| 1894 EXPECT_EQ(width, s.ToInt32(s[0]->InputAt(2))); | 1894 EXPECT_EQ(width, s.ToInt32(s[0]->InputAt(2))); |
| 1895 } | 1895 } |
| 1896 } | 1896 } |
| 1897 } | 1897 } |
| 1898 | |
| 1899 } // namespace compiler | 1898 } // namespace compiler |
| 1900 } // namespace internal | 1899 } // namespace internal |
| 1901 } // namespace v8 | 1900 } // namespace v8 |
| OLD | NEW |