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/instruction-selector-unittest.h" | 5 #include "src/compiler/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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 MachineType type; | 1197 MachineType type; |
1198 ArchOpcode ldr_opcode; | 1198 ArchOpcode ldr_opcode; |
1199 ArchOpcode str_opcode; | 1199 ArchOpcode str_opcode; |
1200 bool (InstructionSelectorTest::Stream::*val_predicate)( | 1200 bool (InstructionSelectorTest::Stream::*val_predicate)( |
1201 const InstructionOperand*) const; | 1201 const InstructionOperand*) const; |
1202 const int32_t immediates[40]; | 1202 const int32_t immediates[40]; |
1203 }; | 1203 }; |
1204 | 1204 |
1205 | 1205 |
1206 std::ostream& operator<<(std::ostream& os, const MemoryAccess& memacc) { | 1206 std::ostream& operator<<(std::ostream& os, const MemoryAccess& memacc) { |
1207 OStringStream ost; | 1207 return os << memacc.type; |
1208 ost << memacc.type; | |
1209 return os << ost.c_str(); | |
1210 } | 1208 } |
1211 | 1209 |
1212 | 1210 |
1213 static const MemoryAccess kMemoryAccesses[] = { | 1211 static const MemoryAccess kMemoryAccesses[] = { |
1214 {kMachInt8, | 1212 {kMachInt8, |
1215 kArmLdrsb, | 1213 kArmLdrsb, |
1216 kArmStrb, | 1214 kArmStrb, |
1217 &InstructionSelectorTest::Stream::IsInteger, | 1215 &InstructionSelectorTest::Stream::IsInteger, |
1218 {-4095, -3340, -3231, -3224, -3088, -1758, -1203, -123, -117, -91, -89, | 1216 {-4095, -3340, -3231, -3224, -3088, -1758, -1203, -123, -117, -91, -89, |
1219 -87, -86, -82, -44, -23, -3, 0, 7, 10, 39, 52, 69, 71, 91, 92, 107, 109, | 1217 -87, -86, -82, -44, -23, -3, 0, 7, 10, 39, 52, 69, 71, 91, 92, 107, 109, |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 ASSERT_EQ(3U, s[0]->InputCount()); | 1916 ASSERT_EQ(3U, s[0]->InputCount()); |
1919 EXPECT_EQ(lsb, s.ToInt32(s[0]->InputAt(1))); | 1917 EXPECT_EQ(lsb, s.ToInt32(s[0]->InputAt(1))); |
1920 EXPECT_EQ(width, s.ToInt32(s[0]->InputAt(2))); | 1918 EXPECT_EQ(width, s.ToInt32(s[0]->InputAt(2))); |
1921 } | 1919 } |
1922 } | 1920 } |
1923 } | 1921 } |
1924 | 1922 |
1925 } // namespace compiler | 1923 } // namespace compiler |
1926 } // namespace internal | 1924 } // namespace internal |
1927 } // namespace v8 | 1925 } // namespace v8 |
OLD | NEW |