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

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

Issue 13983016: Support debugger API on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm_test.cc » ('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/simulator.h" 9 #include "vm/simulator.h"
10 #include "vm/runtime_entry.h" 10 #include "vm/runtime_entry.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } 458 }
459 459
460 460
461 void Assembler::mls(Register rd, Register rn, 461 void Assembler::mls(Register rd, Register rn,
462 Register rm, Register ra, Condition cond) { 462 Register rm, Register ra, Condition cond) {
463 // Assembler registers rd, rn, rm, ra are encoded as rn, rm, rs, rd. 463 // Assembler registers rd, rn, rm, ra are encoded as rn, rm, rs, rd.
464 EmitMulOp(cond, B22 | B21, ra, rd, rn, rm); 464 EmitMulOp(cond, B22 | B21, ra, rd, rn, rm);
465 } 465 }
466 466
467 467
468 void Assembler::smull(Register rd_lo, Register rd_hi,
469 Register rn, Register rm, Condition cond) {
470 // Assembler registers rd_lo, rd_hi, rn, rm are encoded as rd, rn, rm, rs.
471 EmitMulOp(cond, B23 | B22, rd_lo, rd_hi, rn, rm);
472 }
473
474
468 void Assembler::umull(Register rd_lo, Register rd_hi, 475 void Assembler::umull(Register rd_lo, Register rd_hi,
469 Register rn, Register rm, Condition cond) { 476 Register rn, Register rm, Condition cond) {
470 // Assembler registers rd_lo, rd_hi, rn, rm are encoded as rd, rn, rm, rs. 477 // Assembler registers rd_lo, rd_hi, rn, rm are encoded as rd, rn, rm, rs.
471 EmitMulOp(cond, B23, rd_lo, rd_hi, rn, rm); 478 EmitMulOp(cond, B23, rd_lo, rd_hi, rn, rm);
472 } 479 }
473 480
474 481
475 void Assembler::EmitDivOp(Condition cond, int32_t opcode, 482 void Assembler::EmitDivOp(Condition cond, int32_t opcode,
476 Register rd, Register rn, Register rm) { 483 Register rd, Register rn, Register rm) {
477 ASSERT(CPUFeatures::integer_division_supported()); 484 ASSERT(CPUFeatures::integer_division_supported());
(...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 2123
2117 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2124 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2118 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 2125 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
2119 return fpu_reg_names[reg]; 2126 return fpu_reg_names[reg];
2120 } 2127 }
2121 2128
2122 } // namespace dart 2129 } // namespace dart
2123 2130
2124 #endif // defined TARGET_ARCH_ARM 2131 #endif // defined TARGET_ARCH_ARM
2125 2132
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698