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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1922 } | 1922 } |
1923 | 1923 |
1924 if (cpu_profiler_) { | 1924 if (cpu_profiler_) { |
1925 cpu_profiler_->DeleteAllProfiles(); | 1925 cpu_profiler_->DeleteAllProfiles(); |
1926 } | 1926 } |
1927 | 1927 |
1928 // We must stop the logger before we tear down other components. | 1928 // We must stop the logger before we tear down other components. |
1929 Sampler* sampler = logger_->sampler(); | 1929 Sampler* sampler = logger_->sampler(); |
1930 if (sampler && sampler->IsActive()) sampler->Stop(); | 1930 if (sampler && sampler->IsActive()) sampler->Stop(); |
1931 | 1931 |
1932 delete interpreter_; | |
1933 interpreter_ = NULL; | |
1934 | |
1935 delete deoptimizer_data_; | 1932 delete deoptimizer_data_; |
1936 deoptimizer_data_ = NULL; | 1933 deoptimizer_data_ = NULL; |
1937 builtins_.TearDown(); | 1934 builtins_.TearDown(); |
1938 bootstrapper_->TearDown(); | 1935 bootstrapper_->TearDown(); |
1939 | 1936 |
1940 if (runtime_profiler_ != NULL) { | 1937 if (runtime_profiler_ != NULL) { |
1941 delete runtime_profiler_; | 1938 delete runtime_profiler_; |
1942 runtime_profiler_ = NULL; | 1939 runtime_profiler_ = NULL; |
1943 } | 1940 } |
1944 | 1941 |
1945 delete basic_block_profiler_; | 1942 delete basic_block_profiler_; |
1946 basic_block_profiler_ = NULL; | 1943 basic_block_profiler_ = NULL; |
1947 | 1944 |
1948 delete heap_profiler_; | 1945 delete heap_profiler_; |
1949 heap_profiler_ = NULL; | 1946 heap_profiler_ = NULL; |
1950 | 1947 |
1951 heap_.TearDown(); | 1948 heap_.TearDown(); |
1952 logger_->TearDown(); | 1949 logger_->TearDown(); |
1953 | 1950 |
| 1951 delete interpreter_; |
| 1952 interpreter_ = NULL; |
| 1953 |
1954 cancelable_task_manager()->CancelAndWait(); | 1954 cancelable_task_manager()->CancelAndWait(); |
1955 | 1955 |
1956 delete cpu_profiler_; | 1956 delete cpu_profiler_; |
1957 cpu_profiler_ = NULL; | 1957 cpu_profiler_ = NULL; |
1958 | 1958 |
1959 delete root_index_map_; | 1959 delete root_index_map_; |
1960 root_index_map_ = NULL; | 1960 root_index_map_ = NULL; |
1961 | 1961 |
1962 ClearSerializerData(); | 1962 ClearSerializerData(); |
1963 } | 1963 } |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2861 // Then check whether this scope intercepts. | 2861 // Then check whether this scope intercepts. |
2862 if ((flag & intercept_mask_)) { | 2862 if ((flag & intercept_mask_)) { |
2863 intercepted_flags_ |= flag; | 2863 intercepted_flags_ |= flag; |
2864 return true; | 2864 return true; |
2865 } | 2865 } |
2866 return false; | 2866 return false; |
2867 } | 2867 } |
2868 | 2868 |
2869 } // namespace internal | 2869 } // namespace internal |
2870 } // namespace v8 | 2870 } // namespace v8 |
OLD | NEW |