OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |