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

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

Issue 1948113002: S390: Fix printf format mismatch for icount (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_S390 9 #if V8_TARGET_ARCH_S390
10 10
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 } else if (GetValue(arg2, &value)) { 591 } else if (GetValue(arg2, &value)) {
592 sim_->DisableStop(value); 592 sim_->DisableStop(value);
593 } else { 593 } else {
594 PrintF("Unrecognized argument.\n"); 594 PrintF("Unrecognized argument.\n");
595 } 595 }
596 } 596 }
597 } else { 597 } else {
598 PrintF("Wrong usage. Use help command for more information.\n"); 598 PrintF("Wrong usage. Use help command for more information.\n");
599 } 599 }
600 } else if (strcmp(cmd, "icount") == 0) { 600 } else if (strcmp(cmd, "icount") == 0) {
601 PrintF("%05d\n", sim_->icount_); 601 PrintF("%05" PRId64 "\n", sim_->icount_);
602 } else if ((strcmp(cmd, "t") == 0) || strcmp(cmd, "trace") == 0) { 602 } else if ((strcmp(cmd, "t") == 0) || strcmp(cmd, "trace") == 0) {
603 ::v8::internal::FLAG_trace_sim = !::v8::internal::FLAG_trace_sim; 603 ::v8::internal::FLAG_trace_sim = !::v8::internal::FLAG_trace_sim;
604 PrintF("Trace of executed instructions is %s\n", 604 PrintF("Trace of executed instructions is %s\n",
605 ::v8::internal::FLAG_trace_sim ? "on" : "off"); 605 ::v8::internal::FLAG_trace_sim ? "on" : "off");
606 } else if ((strcmp(cmd, "h") == 0) || (strcmp(cmd, "help") == 0)) { 606 } else if ((strcmp(cmd, "h") == 0) || (strcmp(cmd, "help") == 0)) {
607 PrintF("cont\n"); 607 PrintF("cont\n");
608 PrintF(" continue execution (alias 'c')\n"); 608 PrintF(" continue execution (alias 'c')\n");
609 PrintF("stepi [num instructions]\n"); 609 PrintF("stepi [num instructions]\n");
610 PrintF(" step one/num instruction(s) (alias 'si')\n"); 610 PrintF(" step one/num instruction(s) (alias 'si')\n");
611 PrintF("print <register>\n"); 611 PrintF("print <register>\n");
(...skipping 7077 matching lines...) Expand 10 before | Expand all | Expand 10 after
7689 7689
7690 EVALUATE(CXZT) { return DecodeInstructionOriginal(instr); } 7690 EVALUATE(CXZT) { return DecodeInstructionOriginal(instr); }
7691 7691
7692 #undef EVALUATE 7692 #undef EVALUATE
7693 7693
7694 } // namespace internal 7694 } // namespace internal
7695 } // namespace v8 7695 } // namespace v8
7696 7696
7697 #endif // USE_SIMULATOR 7697 #endif // USE_SIMULATOR
7698 #endif // V8_TARGET_ARCH_S390 7698 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698