Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: runtime/vm/assembler_arm.cc

Issue 554033005: Allows allocation of LR on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/constants_arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/constants_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698