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

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

Issue 12381034: Second codegen test passing on ARM (simulated). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
8 #if defined(TARGET_ARCH_ARM) 8 #if defined(TARGET_ARCH_ARM)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 }; 94 };
95 95
96 96
97 // Print the condition guarding the instruction. 97 // Print the condition guarding the instruction.
98 void ARMDecoder::PrintCondition(Instr* instr) { 98 void ARMDecoder::PrintCondition(Instr* instr) {
99 Print(cond_names[instr->ConditionField()]); 99 Print(cond_names[instr->ConditionField()]);
100 } 100 }
101 101
102 102
103 // These register names are defined in a way to match the native disassembler 103 // These register names are defined in a way to match the native disassembler
104 // formatting. See for example the command "objdump -d <binary file>". 104 // formatting, except for register aliases ctx (r9) and pp (r10).
105 // See for example the command "objdump -d <binary file>".
105 static const char* reg_names[kNumberOfCpuRegisters] = { 106 static const char* reg_names[kNumberOfCpuRegisters] = {
106 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", 107 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
107 "r8", "r9", "sl", "fp", "ip", "sp", "lr", "pc", 108 "r8", "ctx", "pp", "fp", "ip", "sp", "lr", "pc",
108 }; 109 };
109 110
110 111
111 // Print the register name according to the active name converter. 112 // Print the register name according to the active name converter.
112 void ARMDecoder::PrintRegister(int reg) { 113 void ARMDecoder::PrintRegister(int reg) {
113 ASSERT(0 <= reg); 114 ASSERT(0 <= reg);
114 ASSERT(reg < kNumberOfCpuRegisters); 115 ASSERT(reg < kNumberOfCpuRegisters);
115 Print(reg_names[reg]); 116 Print(reg_names[reg]);
116 } 117 }
117 118
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 human_buffer, 1246 human_buffer,
1246 sizeof(human_buffer), 1247 sizeof(human_buffer),
1247 pc); 1248 pc);
1248 pc += instruction_length; 1249 pc += instruction_length;
1249 } 1250 }
1250 } 1251 }
1251 1252
1252 } // namespace dart 1253 } // namespace dart
1253 1254
1254 #endif // defined TARGET_ARCH_ARM 1255 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698