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

Side by Side Diff: src/isolate.cc

Issue 287873005: Simplify debugger state. (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/execution.cc ('k') | src/runtime.cc » ('j') | 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 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 1539
1540 void Isolate::GlobalTearDown() { 1540 void Isolate::GlobalTearDown() {
1541 delete thread_data_table_; 1541 delete thread_data_table_;
1542 } 1542 }
1543 1543
1544 1544
1545 void Isolate::Deinit() { 1545 void Isolate::Deinit() {
1546 if (state_ == INITIALIZED) { 1546 if (state_ == INITIALIZED) {
1547 TRACE_ISOLATE(deinit); 1547 TRACE_ISOLATE(deinit);
1548 1548
1549 debugger()->UnloadDebugger();
1550
1551 if (concurrent_recompilation_enabled()) { 1549 if (concurrent_recompilation_enabled()) {
1552 optimizing_compiler_thread_->Stop(); 1550 optimizing_compiler_thread_->Stop();
1553 delete optimizing_compiler_thread_; 1551 delete optimizing_compiler_thread_;
1554 optimizing_compiler_thread_ = NULL; 1552 optimizing_compiler_thread_ = NULL;
1555 } 1553 }
1556 1554
1557 for (int i = 0; i < num_sweeper_threads_; i++) { 1555 for (int i = 0; i < num_sweeper_threads_; i++) {
1558 sweeper_thread_[i]->Stop(); 1556 sweeper_thread_[i]->Stop();
1559 delete sweeper_thread_[i]; 1557 delete sweeper_thread_[i];
1560 sweeper_thread_[i] = NULL; 1558 sweeper_thread_[i] = NULL;
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2253 ASSERT(handle_scope_implementer()->CallDepthIsZero()); 2251 ASSERT(handle_scope_implementer()->CallDepthIsZero());
2254 2252
2255 // Increase call depth to prevent recursive callbacks. 2253 // Increase call depth to prevent recursive callbacks.
2256 handle_scope_implementer()->IncrementCallDepth(); 2254 handle_scope_implementer()->IncrementCallDepth();
2257 Execution::RunMicrotasks(this); 2255 Execution::RunMicrotasks(this);
2258 handle_scope_implementer()->DecrementCallDepth(); 2256 handle_scope_implementer()->DecrementCallDepth();
2259 } 2257 }
2260 2258
2261 2259
2262 } } // namespace v8::internal 2260 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698