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

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
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/flow_graph_compiler_arm.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/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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 human_buffer, 1286 human_buffer,
1286 sizeof(human_buffer), 1287 sizeof(human_buffer),
1287 pc); 1288 pc);
1288 pc += instruction_length; 1289 pc += instruction_length;
1289 } 1290 }
1290 } 1291 }
1291 1292
1292 } // namespace dart 1293 } // namespace dart
1293 1294
1294 #endif // defined TARGET_ARCH_ARM 1295 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698