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 "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 delete thread_data_table_; | 1867 delete thread_data_table_; |
1868 thread_data_table_ = NULL; | 1868 thread_data_table_ = NULL; |
1869 } | 1869 } |
1870 | 1870 |
1871 | 1871 |
1872 void Isolate::ClearSerializerData() { | 1872 void Isolate::ClearSerializerData() { |
1873 delete external_reference_table_; | 1873 delete external_reference_table_; |
1874 external_reference_table_ = NULL; | 1874 external_reference_table_ = NULL; |
1875 delete external_reference_map_; | 1875 delete external_reference_map_; |
1876 external_reference_map_ = NULL; | 1876 external_reference_map_ = NULL; |
1877 delete root_index_map_; | |
1878 root_index_map_ = NULL; | |
1879 } | 1877 } |
1880 | 1878 |
1881 | 1879 |
1882 void Isolate::Deinit() { | 1880 void Isolate::Deinit() { |
1883 TRACE_ISOLATE(deinit); | 1881 TRACE_ISOLATE(deinit); |
1884 | 1882 |
1885 debug()->Unload(); | 1883 debug()->Unload(); |
1886 | 1884 |
1887 FreeThreadResources(); | 1885 FreeThreadResources(); |
1888 | 1886 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 cancelable_tasks_.clear(); | 1926 cancelable_tasks_.clear(); |
1929 | 1927 |
1930 heap_.TearDown(); | 1928 heap_.TearDown(); |
1931 logger_->TearDown(); | 1929 logger_->TearDown(); |
1932 | 1930 |
1933 delete heap_profiler_; | 1931 delete heap_profiler_; |
1934 heap_profiler_ = NULL; | 1932 heap_profiler_ = NULL; |
1935 delete cpu_profiler_; | 1933 delete cpu_profiler_; |
1936 cpu_profiler_ = NULL; | 1934 cpu_profiler_ = NULL; |
1937 | 1935 |
| 1936 delete root_index_map_; |
| 1937 root_index_map_ = NULL; |
| 1938 |
1938 ClearSerializerData(); | 1939 ClearSerializerData(); |
1939 } | 1940 } |
1940 | 1941 |
1941 | 1942 |
1942 void Isolate::SetIsolateThreadLocals(Isolate* isolate, | 1943 void Isolate::SetIsolateThreadLocals(Isolate* isolate, |
1943 PerIsolateThreadData* data) { | 1944 PerIsolateThreadData* data) { |
1944 base::Thread::SetThreadLocal(isolate_key_, isolate); | 1945 base::Thread::SetThreadLocal(isolate_key_, isolate); |
1945 base::Thread::SetThreadLocal(per_isolate_thread_data_key_, data); | 1946 base::Thread::SetThreadLocal(per_isolate_thread_data_key_, data); |
1946 } | 1947 } |
1947 | 1948 |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2849 // Then check whether this scope intercepts. | 2850 // Then check whether this scope intercepts. |
2850 if ((flag & intercept_mask_)) { | 2851 if ((flag & intercept_mask_)) { |
2851 intercepted_flags_ |= flag; | 2852 intercepted_flags_ |= flag; |
2852 return true; | 2853 return true; |
2853 } | 2854 } |
2854 return false; | 2855 return false; |
2855 } | 2856 } |
2856 | 2857 |
2857 } // namespace internal | 2858 } // namespace internal |
2858 } // namespace v8 | 2859 } // namespace v8 |
OLD | NEW |