Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/isolate.cc

Issue 1526253005: Stop profiler on isolate teardown if still running (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698