OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 | 1870 |
1871 void Isolate::GlobalTearDown() { | 1871 void Isolate::GlobalTearDown() { |
1872 delete thread_data_table_; | 1872 delete thread_data_table_; |
1873 } | 1873 } |
1874 | 1874 |
1875 | 1875 |
1876 void Isolate::Deinit() { | 1876 void Isolate::Deinit() { |
1877 if (state_ == INITIALIZED) { | 1877 if (state_ == INITIALIZED) { |
1878 TRACE_ISOLATE(deinit); | 1878 TRACE_ISOLATE(deinit); |
1879 | 1879 |
| 1880 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 1881 debugger()->UnloadDebugger(); |
| 1882 #endif |
| 1883 |
1880 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Stop(); | 1884 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Stop(); |
1881 | 1885 |
1882 if (FLAG_sweeper_threads > 0) { | 1886 if (FLAG_sweeper_threads > 0) { |
1883 for (int i = 0; i < FLAG_sweeper_threads; i++) { | 1887 for (int i = 0; i < FLAG_sweeper_threads; i++) { |
1884 sweeper_thread_[i]->Stop(); | 1888 sweeper_thread_[i]->Stop(); |
1885 delete sweeper_thread_[i]; | 1889 delete sweeper_thread_[i]; |
1886 } | 1890 } |
1887 delete[] sweeper_thread_; | 1891 delete[] sweeper_thread_; |
1888 } | 1892 } |
1889 | 1893 |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 | 2508 |
2505 #ifdef DEBUG | 2509 #ifdef DEBUG |
2506 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2510 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2507 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2511 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2508 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2512 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2509 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2513 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2510 #undef ISOLATE_FIELD_OFFSET | 2514 #undef ISOLATE_FIELD_OFFSET |
2511 #endif | 2515 #endif |
2512 | 2516 |
2513 } } // namespace v8::internal | 2517 } } // namespace v8::internal |
OLD | NEW |