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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 bootstrapper_->TearDown(); | 1912 bootstrapper_->TearDown(); |
1913 | 1913 |
1914 if (runtime_profiler_ != NULL) { | 1914 if (runtime_profiler_ != NULL) { |
1915 delete runtime_profiler_; | 1915 delete runtime_profiler_; |
1916 runtime_profiler_ = NULL; | 1916 runtime_profiler_ = NULL; |
1917 } | 1917 } |
1918 | 1918 |
1919 delete basic_block_profiler_; | 1919 delete basic_block_profiler_; |
1920 basic_block_profiler_ = NULL; | 1920 basic_block_profiler_ = NULL; |
1921 | 1921 |
| 1922 delete heap_profiler_; |
| 1923 heap_profiler_ = NULL; |
| 1924 |
1922 heap_.TearDown(); | 1925 heap_.TearDown(); |
1923 logger_->TearDown(); | 1926 logger_->TearDown(); |
1924 | 1927 |
1925 cancelable_task_manager()->CancelAndWait(); | 1928 cancelable_task_manager()->CancelAndWait(); |
1926 | 1929 |
1927 delete heap_profiler_; | |
1928 heap_profiler_ = NULL; | |
1929 delete cpu_profiler_; | 1930 delete cpu_profiler_; |
1930 cpu_profiler_ = NULL; | 1931 cpu_profiler_ = NULL; |
1931 | 1932 |
1932 delete root_index_map_; | 1933 delete root_index_map_; |
1933 root_index_map_ = NULL; | 1934 root_index_map_ = NULL; |
1934 | 1935 |
1935 ClearSerializerData(); | 1936 ClearSerializerData(); |
1936 } | 1937 } |
1937 | 1938 |
1938 | 1939 |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2829 // Then check whether this scope intercepts. | 2830 // Then check whether this scope intercepts. |
2830 if ((flag & intercept_mask_)) { | 2831 if ((flag & intercept_mask_)) { |
2831 intercepted_flags_ |= flag; | 2832 intercepted_flags_ |= flag; |
2832 return true; | 2833 return true; |
2833 } | 2834 } |
2834 return false; | 2835 return false; |
2835 } | 2836 } |
2836 | 2837 |
2837 } // namespace internal | 2838 } // namespace internal |
2838 } // namespace v8 | 2839 } // namespace v8 |
OLD | NEW |