| Index: src/s390/simulator-s390.cc
|
| diff --git a/src/s390/simulator-s390.cc b/src/s390/simulator-s390.cc
|
| index 434fbffcfc53e040be9dafb7e593573090c8b536..2ac522fa11d5527eda51019af6246423dffcd9a7 100644
|
| --- a/src/s390/simulator-s390.cc
|
| +++ b/src/s390/simulator-s390.cc
|
| @@ -36,7 +36,6 @@ const auto GetRegConfig = RegisterConfiguration::Crankshaft;
|
| class S390Debugger {
|
| public:
|
| explicit S390Debugger(Simulator* sim) : sim_(sim) {}
|
| - ~S390Debugger();
|
|
|
| void Stop(Instruction* instr);
|
| void Debug();
|
| @@ -69,48 +68,6 @@ class S390Debugger {
|
| void RedoBreakpoints();
|
| };
|
|
|
| -S390Debugger::~S390Debugger() {}
|
| -
|
| -#ifdef GENERATED_CODE_COVERAGE
|
| -static FILE* coverage_log = NULL;
|
| -
|
| -static void InitializeCoverage() {
|
| - char* file_name = getenv("V8_GENERATED_CODE_COVERAGE_LOG");
|
| - if (file_name != NULL) {
|
| - coverage_log = fopen(file_name, "aw+");
|
| - }
|
| -}
|
| -
|
| -void S390Debugger::Stop(Instruction* instr) {
|
| - // Get the stop code.
|
| - uint32_t code = instr->SvcValue() & kStopCodeMask;
|
| - // Retrieve the encoded address, which comes just after this stop.
|
| - char** msg_address =
|
| - reinterpret_cast<char**>(sim_->get_pc() + sizeof(FourByteInstr));
|
| - char* msg = *msg_address;
|
| - DCHECK(msg != NULL);
|
| -
|
| - // Update this stop description.
|
| - if (isWatchedStop(code) && !watched_stops_[code].desc) {
|
| - watched_stops_[code].desc = msg;
|
| - }
|
| -
|
| - if (strlen(msg) > 0) {
|
| - if (coverage_log != NULL) {
|
| - fprintf(coverage_log, "%s\n", msg);
|
| - fflush(coverage_log);
|
| - }
|
| - // Overwrite the instruction and address with nops.
|
| - instr->SetInstructionBits(kNopInstr);
|
| - reinterpret_cast<Instruction*>(msg_address)->SetInstructionBits(kNopInstr);
|
| - }
|
| - sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr) + kPointerSize);
|
| -}
|
| -
|
| -#else // ndef GENERATED_CODE_COVERAGE
|
| -
|
| -static void InitializeCoverage() {}
|
| -
|
| void S390Debugger::Stop(Instruction* instr) {
|
| // Get the stop code.
|
| // use of kStopCodeMask not right on PowerPC
|
| @@ -130,7 +87,6 @@ void S390Debugger::Stop(Instruction* instr) {
|
| sim_->set_pc(sim_->get_pc() + sizeof(FourByteInstr) + kPointerSize);
|
| Debug();
|
| }
|
| -#endif
|
|
|
| intptr_t S390Debugger::GetRegisterValue(int regnum) {
|
| return sim_->get_register(regnum);
|
| @@ -1555,7 +1511,6 @@ Simulator::Simulator(Isolate* isolate) : isolate_(isolate) {
|
| // some buffer below.
|
| registers_[sp] =
|
| reinterpret_cast<intptr_t>(stack_) + stack_size - stack_protection_size_;
|
| - InitializeCoverage();
|
|
|
| last_debugger_input_ = NULL;
|
| }
|
|
|