| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1513 ldr(rd, Address(PP, offset), cond); | 1513 ldr(rd, Address(PP, offset), cond); |
| 1514 } else { | 1514 } else { |
| 1515 int32_t offset_hi = offset & ~offset_mask; // signed | 1515 int32_t offset_hi = offset & ~offset_mask; // signed |
| 1516 uint32_t offset_lo = offset & offset_mask; // unsigned | 1516 uint32_t offset_lo = offset & offset_mask; // unsigned |
| 1517 // Inline a simplified version of AddImmediate(rd, PP, offset_hi). | 1517 // Inline a simplified version of AddImmediate(rd, PP, offset_hi). |
| 1518 Operand o; | 1518 Operand o; |
| 1519 if (Operand::CanHold(offset_hi, &o)) { | 1519 if (Operand::CanHold(offset_hi, &o)) { |
| 1520 add(rd, PP, o, cond); | 1520 add(rd, PP, o, cond); |
| 1521 } else { | 1521 } else { |
| 1522 LoadImmediate(rd, offset_hi, cond); | 1522 LoadImmediate(rd, offset_hi, cond); |
| 1523 add(rd, PP, Operand(LR), cond); | 1523 add(rd, PP, Operand(rd), cond); |
| 1524 } | 1524 } |
| 1525 ldr(rd, Address(rd, offset_lo), cond); | 1525 ldr(rd, Address(rd, offset_lo), cond); |
| 1526 } | 1526 } |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 | 1529 |
| 1530 void Assembler::LoadPoolPointer() { | 1530 void Assembler::LoadPoolPointer() { |
| 1531 const intptr_t object_pool_pc_dist = | 1531 const intptr_t object_pool_pc_dist = |
| 1532 Instructions::HeaderSize() - Instructions::object_pool_offset() + | 1532 Instructions::HeaderSize() - Instructions::object_pool_offset() + |
| 1533 CodeSize() + Instr::kPCReadOffset; | 1533 CodeSize() + Instr::kPCReadOffset; |
| (...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3375 | 3375 |
| 3376 | 3376 |
| 3377 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3377 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3378 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3378 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3379 return fpu_reg_names[reg]; | 3379 return fpu_reg_names[reg]; |
| 3380 } | 3380 } |
| 3381 | 3381 |
| 3382 } // namespace dart | 3382 } // namespace dart |
| 3383 | 3383 |
| 3384 #endif // defined TARGET_ARCH_ARM | 3384 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |