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

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

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 5 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Leave the debugger shell. 292 // Leave the debugger shell.
293 done = true; 293 done = true;
294 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) { 294 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) {
295 if (argc == 2 || (argc == 3 && strcmp(arg2, "fp") == 0)) { 295 if (argc == 2 || (argc == 3 && strcmp(arg2, "fp") == 0)) {
296 int32_t value; 296 int32_t value;
297 float svalue; 297 float svalue;
298 double dvalue; 298 double dvalue;
299 if (strcmp(arg1, "all") == 0) { 299 if (strcmp(arg1, "all") == 0) {
300 for (int i = 0; i < kNumRegisters; i++) { 300 for (int i = 0; i < kNumRegisters; i++) {
301 value = GetRegisterValue(i); 301 value = GetRegisterValue(i);
302 PrintF("%3s: 0x%08x %10d", Register::from_code(i).ToString(), 302 PrintF(
303 value, value); 303 "%3s: 0x%08x %10d",
304 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
305 i),
306 value, value);
304 if ((argc == 3 && strcmp(arg2, "fp") == 0) && 307 if ((argc == 3 && strcmp(arg2, "fp") == 0) &&
305 i < 8 && 308 i < 8 &&
306 (i % 2) == 0) { 309 (i % 2) == 0) {
307 dvalue = GetRegisterPairDoubleValue(i); 310 dvalue = GetRegisterPairDoubleValue(i);
308 PrintF(" (%f)\n", dvalue); 311 PrintF(" (%f)\n", dvalue);
309 } else { 312 } else {
310 PrintF("\n"); 313 PrintF("\n");
311 } 314 }
312 } 315 }
313 for (int i = 0; i < DwVfpRegister::NumRegisters(); i++) { 316 for (int i = 0; i < DwVfpRegister::NumRegisters(); i++) {
(...skipping 3992 matching lines...) Expand 10 before | Expand all | Expand 10 after
4306 set_register(sp, current_sp + sizeof(uintptr_t)); 4309 set_register(sp, current_sp + sizeof(uintptr_t));
4307 return address; 4310 return address;
4308 } 4311 }
4309 4312
4310 } // namespace internal 4313 } // namespace internal
4311 } // namespace v8 4314 } // namespace v8
4312 4315
4313 #endif // USE_SIMULATOR 4316 #endif // USE_SIMULATOR
4314 4317
4315 #endif // V8_TARGET_ARCH_ARM 4318 #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