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

Side by Side Diff: src/isolate.cc

Issue 299653002: Reland "Simplify debugger state." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix test to check for pointer equality instead of handle equality 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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 1551
1552 void Isolate::GlobalTearDown() { 1552 void Isolate::GlobalTearDown() {
1553 delete thread_data_table_; 1553 delete thread_data_table_;
1554 } 1554 }
1555 1555
1556 1556
1557 void Isolate::Deinit() { 1557 void Isolate::Deinit() {
1558 if (state_ == INITIALIZED) { 1558 if (state_ == INITIALIZED) {
1559 TRACE_ISOLATE(deinit); 1559 TRACE_ISOLATE(deinit);
1560 1560
1561 debugger()->UnloadDebugger();
1562
1563 if (concurrent_recompilation_enabled()) { 1561 if (concurrent_recompilation_enabled()) {
1564 optimizing_compiler_thread_->Stop(); 1562 optimizing_compiler_thread_->Stop();
1565 delete optimizing_compiler_thread_; 1563 delete optimizing_compiler_thread_;
1566 optimizing_compiler_thread_ = NULL; 1564 optimizing_compiler_thread_ = NULL;
1567 } 1565 }
1568 1566
1569 for (int i = 0; i < num_sweeper_threads_; i++) { 1567 for (int i = 0; i < num_sweeper_threads_; i++) {
1570 sweeper_thread_[i]->Stop(); 1568 sweeper_thread_[i]->Stop();
1571 delete sweeper_thread_[i]; 1569 delete sweeper_thread_[i];
1572 sweeper_thread_[i] = NULL; 1570 sweeper_thread_[i] = NULL;
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 Execution::Call(this, microtask, factory()->undefined_value(), 2299 Execution::Call(this, microtask, factory()->undefined_value(),
2302 0, NULL).Check(); 2300 0, NULL).Check();
2303 } 2301 }
2304 } 2302 }
2305 2303
2306 handle_scope_implementer()->DecrementCallDepth(); 2304 handle_scope_implementer()->DecrementCallDepth();
2307 } 2305 }
2308 2306
2309 2307
2310 } } // namespace v8::internal 2308 } } // 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