OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |