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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |