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

Side by Side Diff: src/arm/simulator-arm.cc

Issue 1380863004: Revert of Reland: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/assembler-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <cmath> 7 #include <cmath>
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // Leave the debugger shell. 291 // Leave the debugger shell.
292 done = true; 292 done = true;
293 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) { 293 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) {
294 if (argc == 2 || (argc == 3 && strcmp(arg2, "fp") == 0)) { 294 if (argc == 2 || (argc == 3 && strcmp(arg2, "fp") == 0)) {
295 int32_t value; 295 int32_t value;
296 float svalue; 296 float svalue;
297 double dvalue; 297 double dvalue;
298 if (strcmp(arg1, "all") == 0) { 298 if (strcmp(arg1, "all") == 0) {
299 for (int i = 0; i < kNumRegisters; i++) { 299 for (int i = 0; i < kNumRegisters; i++) {
300 value = GetRegisterValue(i); 300 value = GetRegisterValue(i);
301 PrintF("%3s: 0x%08x %10d", Register::from_code(i).ToString(), 301 PrintF("%3s: 0x%08x %10d", Registers::Name(i), value, value);
302 value, value);
303 if ((argc == 3 && strcmp(arg2, "fp") == 0) && 302 if ((argc == 3 && strcmp(arg2, "fp") == 0) &&
304 i < 8 && 303 i < 8 &&
305 (i % 2) == 0) { 304 (i % 2) == 0) {
306 dvalue = GetRegisterPairDoubleValue(i); 305 dvalue = GetRegisterPairDoubleValue(i);
307 PrintF(" (%f)\n", dvalue); 306 PrintF(" (%f)\n", dvalue);
308 } else { 307 } else {
309 PrintF("\n"); 308 PrintF("\n");
310 } 309 }
311 } 310 }
312 for (int i = 0; i < DwVfpRegister::NumRegisters(); i++) { 311 for (int i = 0; i < DwVfpRegister::NumRegisters(); i++) {
(...skipping 3845 matching lines...) Expand 10 before | Expand all | Expand 10 after
4158 set_register(sp, current_sp + sizeof(uintptr_t)); 4157 set_register(sp, current_sp + sizeof(uintptr_t));
4159 return address; 4158 return address;
4160 } 4159 }
4161 4160
4162 } // namespace internal 4161 } // namespace internal
4163 } // namespace v8 4162 } // namespace v8
4164 4163
4165 #endif // USE_SIMULATOR 4164 #endif // USE_SIMULATOR
4166 4165
4167 #endif // V8_TARGET_ARCH_ARM 4166 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698