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

Side by Side Diff: src/isolate.cc

Issue 1922303002: Create libsampler as V8 sampler library. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months 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
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>
11 11
12 #include "src/ast/ast.h" 12 #include "src/ast/ast.h"
13 #include "src/ast/scopeinfo.h" 13 #include "src/ast/scopeinfo.h"
14 #include "src/base/platform/platform.h" 14 #include "src/base/platform/platform.h"
15 #include "src/base/sys-info.h" 15 #include "src/base/sys-info.h"
16 #include "src/base/utils/random-number-generator.h" 16 #include "src/base/utils/random-number-generator.h"
17 #include "src/basic-block-profiler.h" 17 #include "src/basic-block-profiler.h"
18 #include "src/bootstrapper.h" 18 #include "src/bootstrapper.h"
19 #include "src/codegen.h" 19 #include "src/codegen.h"
20 #include "src/compilation-cache.h" 20 #include "src/compilation-cache.h"
21 #include "src/compilation-statistics.h" 21 #include "src/compilation-statistics.h"
22 #include "src/crankshaft/hydrogen.h" 22 #include "src/crankshaft/hydrogen.h"
23 #include "src/debug/debug.h" 23 #include "src/debug/debug.h"
24 #include "src/deoptimizer.h" 24 #include "src/deoptimizer.h"
25 #include "src/external-reference-table.h" 25 #include "src/external-reference-table.h"
26 #include "src/frames-inl.h" 26 #include "src/frames-inl.h"
27 #include "src/ic/stub-cache.h" 27 #include "src/ic/stub-cache.h"
28 #include "src/interpreter/interpreter.h" 28 #include "src/interpreter/interpreter.h"
29 #include "src/isolate-inl.h" 29 #include "src/isolate-inl.h"
30 #include "src/libsampler/v8-sampler.h"
30 #include "src/log.h" 31 #include "src/log.h"
31 #include "src/messages.h" 32 #include "src/messages.h"
32 #include "src/profiler/cpu-profiler.h" 33 #include "src/profiler/cpu-profiler.h"
33 #include "src/profiler/sampler.h"
34 #include "src/prototype.h" 34 #include "src/prototype.h"
35 #include "src/regexp/regexp-stack.h" 35 #include "src/regexp/regexp-stack.h"
36 #include "src/runtime-profiler.h" 36 #include "src/runtime-profiler.h"
37 #include "src/simulator.h" 37 #include "src/simulator.h"
38 #include "src/snapshot/deserializer.h" 38 #include "src/snapshot/deserializer.h"
39 #include "src/v8.h" 39 #include "src/v8.h"
40 #include "src/version.h" 40 #include "src/version.h"
41 #include "src/vm-state-inl.h" 41 #include "src/vm-state-inl.h"
42 #include "src/wasm/wasm-module.h" 42 #include "src/wasm/wasm-module.h"
43 43
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 2009
2010 if (FLAG_print_deopt_stress) { 2010 if (FLAG_print_deopt_stress) {
2011 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); 2011 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_);
2012 } 2012 }
2013 2013
2014 if (cpu_profiler_) { 2014 if (cpu_profiler_) {
2015 cpu_profiler_->DeleteAllProfiles(); 2015 cpu_profiler_->DeleteAllProfiles();
2016 } 2016 }
2017 2017
2018 // We must stop the logger before we tear down other components. 2018 // We must stop the logger before we tear down other components.
2019 Sampler* sampler = logger_->sampler(); 2019 sampler::Sampler* sampler = logger_->sampler();
2020 if (sampler && sampler->IsActive()) sampler->Stop(); 2020 if (sampler && sampler->IsActive()) sampler->Stop();
2021 2021
2022 delete deoptimizer_data_; 2022 delete deoptimizer_data_;
2023 deoptimizer_data_ = NULL; 2023 deoptimizer_data_ = NULL;
2024 builtins_.TearDown(); 2024 builtins_.TearDown();
2025 bootstrapper_->TearDown(); 2025 bootstrapper_->TearDown();
2026 2026
2027 if (runtime_profiler_ != NULL) { 2027 if (runtime_profiler_ != NULL) {
2028 delete runtime_profiler_; 2028 delete runtime_profiler_;
2029 runtime_profiler_ = NULL; 2029 runtime_profiler_ = NULL;
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
3068 // Then check whether this scope intercepts. 3068 // Then check whether this scope intercepts.
3069 if ((flag & intercept_mask_)) { 3069 if ((flag & intercept_mask_)) {
3070 intercepted_flags_ |= flag; 3070 intercepted_flags_ |= flag;
3071 return true; 3071 return true;
3072 } 3072 }
3073 return false; 3073 return false;
3074 } 3074 }
3075 3075
3076 } // namespace internal 3076 } // namespace internal
3077 } // namespace v8 3077 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/libsampler/DEPS » ('j') | src/libsampler/hashmap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698