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

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

Issue 183203004: Fix r19564: Don't free decoder_ in ~Simulator(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 418
419 Simulator::~Simulator() { 419 Simulator::~Simulator() {
420 delete[] stack_; 420 delete[] stack_;
421 if (FLAG_log_instruction_stats) { 421 if (FLAG_log_instruction_stats) {
422 delete instrument_; 422 delete instrument_;
423 } 423 }
424 delete disassembler_decoder_; 424 delete disassembler_decoder_;
425 delete print_disasm_; 425 delete print_disasm_;
426 DeleteArray(last_debugger_input_); 426 DeleteArray(last_debugger_input_);
427 delete decoder_;
428 } 427 }
429 428
430 429
431 void Simulator::Run() { 430 void Simulator::Run() {
432 pc_modified_ = false; 431 pc_modified_ = false;
433 while (pc_ != kEndOfSimAddress) { 432 while (pc_ != kEndOfSimAddress) {
434 ExecuteInstruction(); 433 ExecuteInstruction();
435 } 434 }
436 } 435 }
437 436
(...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after
3429 default: 3428 default:
3430 UNIMPLEMENTED(); 3429 UNIMPLEMENTED();
3431 } 3430 }
3432 } 3431 }
3433 3432
3434 #endif // USE_SIMULATOR 3433 #endif // USE_SIMULATOR
3435 3434
3436 } } // namespace v8::internal 3435 } } // namespace v8::internal
3437 3436
3438 #endif // V8_TARGET_ARCH_A64 3437 #endif // V8_TARGET_ARCH_A64
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