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

Side by Side Diff: src/isolate.cc

Issue 297373002: Fix memory leak in the debugger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | 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 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #include "ast.h" 9 #include "ast.h"
10 #include "bootstrapper.h" 10 #include "bootstrapper.h"
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 1555
1556 void Isolate::GlobalTearDown() { 1556 void Isolate::GlobalTearDown() {
1557 delete thread_data_table_; 1557 delete thread_data_table_;
1558 } 1558 }
1559 1559
1560 1560
1561 void Isolate::Deinit() { 1561 void Isolate::Deinit() {
1562 if (state_ == INITIALIZED) { 1562 if (state_ == INITIALIZED) {
1563 TRACE_ISOLATE(deinit); 1563 TRACE_ISOLATE(deinit);
1564 1564
1565 debug()->Unload();
1566
1565 if (concurrent_recompilation_enabled()) { 1567 if (concurrent_recompilation_enabled()) {
1566 optimizing_compiler_thread_->Stop(); 1568 optimizing_compiler_thread_->Stop();
1567 delete optimizing_compiler_thread_; 1569 delete optimizing_compiler_thread_;
1568 optimizing_compiler_thread_ = NULL; 1570 optimizing_compiler_thread_ = NULL;
1569 } 1571 }
1570 1572
1571 for (int i = 0; i < num_sweeper_threads_; i++) { 1573 for (int i = 0; i < num_sweeper_threads_; i++) {
1572 sweeper_thread_[i]->Stop(); 1574 sweeper_thread_[i]->Stop();
1573 delete sweeper_thread_[i]; 1575 delete sweeper_thread_[i];
1574 sweeper_thread_[i] = NULL; 1576 sweeper_thread_[i] = NULL;
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 Execution::Call(this, microtask, factory()->undefined_value(), 2308 Execution::Call(this, microtask, factory()->undefined_value(),
2307 0, NULL).Check(); 2309 0, NULL).Check();
2308 } 2310 }
2309 } 2311 }
2310 2312
2311 handle_scope_implementer()->DecrementCallDepth(); 2313 handle_scope_implementer()->DecrementCallDepth();
2312 } 2314 }
2313 2315
2314 2316
2315 } } // namespace v8::internal 2317 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698