| 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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 if (heap_.mark_compact_collector()->sweeping_in_progress()) { | 1872 if (heap_.mark_compact_collector()->sweeping_in_progress()) { |
| 1873 heap_.mark_compact_collector()->EnsureSweepingCompleted(); | 1873 heap_.mark_compact_collector()->EnsureSweepingCompleted(); |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 DumpAndResetCompilationStats(); | 1876 DumpAndResetCompilationStats(); |
| 1877 | 1877 |
| 1878 if (FLAG_print_deopt_stress) { | 1878 if (FLAG_print_deopt_stress) { |
| 1879 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); | 1879 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
| 1880 } | 1880 } |
| 1881 | 1881 |
| 1882 if (cpu_profiler_) { |
| 1883 cpu_profiler_->DeleteAllProfiles(); |
| 1884 } |
| 1885 |
| 1882 // We must stop the logger before we tear down other components. | 1886 // We must stop the logger before we tear down other components. |
| 1883 Sampler* sampler = logger_->sampler(); | 1887 Sampler* sampler = logger_->sampler(); |
| 1884 if (sampler && sampler->IsActive()) sampler->Stop(); | 1888 if (sampler && sampler->IsActive()) sampler->Stop(); |
| 1885 | 1889 |
| 1886 delete interpreter_; | 1890 delete interpreter_; |
| 1887 interpreter_ = NULL; | 1891 interpreter_ = NULL; |
| 1888 | 1892 |
| 1889 delete deoptimizer_data_; | 1893 delete deoptimizer_data_; |
| 1890 deoptimizer_data_ = NULL; | 1894 deoptimizer_data_ = NULL; |
| 1891 builtins_.TearDown(); | 1895 builtins_.TearDown(); |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2809 // Then check whether this scope intercepts. | 2813 // Then check whether this scope intercepts. |
| 2810 if ((flag & intercept_mask_)) { | 2814 if ((flag & intercept_mask_)) { |
| 2811 intercepted_flags_ |= flag; | 2815 intercepted_flags_ |= flag; |
| 2812 return true; | 2816 return true; |
| 2813 } | 2817 } |
| 2814 return false; | 2818 return false; |
| 2815 } | 2819 } |
| 2816 | 2820 |
| 2817 } // namespace internal | 2821 } // namespace internal |
| 2818 } // namespace v8 | 2822 } // namespace v8 |
| OLD | NEW |