| 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 <list> | 5 #include <list> |
| 6 | 6 |
| 7 #include "src/compiler/instruction-selector-unittest.h" | 7 #include "src/compiler/instruction-selector-unittest.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 | 989 |
| 990 struct MemoryAccess { | 990 struct MemoryAccess { |
| 991 MachineType type; | 991 MachineType type; |
| 992 ArchOpcode ldr_opcode; | 992 ArchOpcode ldr_opcode; |
| 993 ArchOpcode str_opcode; | 993 ArchOpcode str_opcode; |
| 994 const int32_t immediates[20]; | 994 const int32_t immediates[20]; |
| 995 }; | 995 }; |
| 996 | 996 |
| 997 | 997 |
| 998 std::ostream& operator<<(std::ostream& os, const MemoryAccess& memacc) { | 998 std::ostream& operator<<(std::ostream& os, const MemoryAccess& memacc) { |
| 999 OStringStream ost; | 999 return os << memacc.type; |
| 1000 ost << memacc.type; | |
| 1001 return os << ost.c_str(); | |
| 1002 } | 1000 } |
| 1003 | 1001 |
| 1004 } // namespace | 1002 } // namespace |
| 1005 | 1003 |
| 1006 | 1004 |
| 1007 static const MemoryAccess kMemoryAccesses[] = { | 1005 static const MemoryAccess kMemoryAccesses[] = { |
| 1008 {kMachInt8, kArm64Ldrsb, kArm64Strb, | 1006 {kMachInt8, kArm64Ldrsb, kArm64Strb, |
| 1009 {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, | 1007 {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, |
| 1010 2121, 2442, 4093, 4094, 4095}}, | 1008 2121, 2442, 4093, 4094, 4095}}, |
| 1011 {kMachUint8, kArm64Ldrb, kArm64Strb, | 1009 {kMachUint8, kArm64Ldrb, kArm64Strb, |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 ASSERT_EQ(1U, s.size()); | 1386 ASSERT_EQ(1U, s.size()); |
| 1389 EXPECT_EQ(kArm64Not, s[0]->arch_opcode()); | 1387 EXPECT_EQ(kArm64Not, s[0]->arch_opcode()); |
| 1390 EXPECT_EQ(1U, s[0]->InputCount()); | 1388 EXPECT_EQ(1U, s[0]->InputCount()); |
| 1391 EXPECT_EQ(1U, s[0]->OutputCount()); | 1389 EXPECT_EQ(1U, s[0]->OutputCount()); |
| 1392 } | 1390 } |
| 1393 } | 1391 } |
| 1394 | 1392 |
| 1395 } // namespace compiler | 1393 } // namespace compiler |
| 1396 } // namespace internal | 1394 } // namespace internal |
| 1397 } // namespace v8 | 1395 } // namespace v8 |
| OLD | NEW |