| 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> |
| 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" | |
| 31 #include "src/log.h" | 30 #include "src/log.h" |
| 32 #include "src/messages.h" | 31 #include "src/messages.h" |
| 33 #include "src/profiler/cpu-profiler.h" | 32 #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 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1999 | 1999 |
| 2000 if (FLAG_print_deopt_stress) { | 2000 if (FLAG_print_deopt_stress) { |
| 2001 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); | 2001 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
| 2002 } | 2002 } |
| 2003 | 2003 |
| 2004 if (cpu_profiler_) { | 2004 if (cpu_profiler_) { |
| 2005 cpu_profiler_->DeleteAllProfiles(); | 2005 cpu_profiler_->DeleteAllProfiles(); |
| 2006 } | 2006 } |
| 2007 | 2007 |
| 2008 // We must stop the logger before we tear down other components. | 2008 // We must stop the logger before we tear down other components. |
| 2009 sampler::Sampler* sampler = logger_->sampler(); | 2009 Sampler* sampler = logger_->sampler(); |
| 2010 if (sampler && sampler->IsActive()) sampler->Stop(); | 2010 if (sampler && sampler->IsActive()) sampler->Stop(); |
| 2011 | 2011 |
| 2012 delete deoptimizer_data_; | 2012 delete deoptimizer_data_; |
| 2013 deoptimizer_data_ = NULL; | 2013 deoptimizer_data_ = NULL; |
| 2014 builtins_.TearDown(); | 2014 builtins_.TearDown(); |
| 2015 bootstrapper_->TearDown(); | 2015 bootstrapper_->TearDown(); |
| 2016 | 2016 |
| 2017 if (runtime_profiler_ != NULL) { | 2017 if (runtime_profiler_ != NULL) { |
| 2018 delete runtime_profiler_; | 2018 delete runtime_profiler_; |
| 2019 runtime_profiler_ = NULL; | 2019 runtime_profiler_ = NULL; |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3064 // Then check whether this scope intercepts. | 3064 // Then check whether this scope intercepts. |
| 3065 if ((flag & intercept_mask_)) { | 3065 if ((flag & intercept_mask_)) { |
| 3066 intercepted_flags_ |= flag; | 3066 intercepted_flags_ |= flag; |
| 3067 return true; | 3067 return true; |
| 3068 } | 3068 } |
| 3069 return false; | 3069 return false; |
| 3070 } | 3070 } |
| 3071 | 3071 |
| 3072 } // namespace internal | 3072 } // namespace internal |
| 3073 } // namespace v8 | 3073 } // namespace v8 |
| OLD | NEW |