| 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 24 matching lines...) Expand all Loading... |
| 35 #include "src/isolate-inl.h" | 35 #include "src/isolate-inl.h" |
| 36 #include "src/libsampler/sampler.h" | 36 #include "src/libsampler/sampler.h" |
| 37 #include "src/log.h" | 37 #include "src/log.h" |
| 38 #include "src/messages.h" | 38 #include "src/messages.h" |
| 39 #include "src/profiler/cpu-profiler.h" | 39 #include "src/profiler/cpu-profiler.h" |
| 40 #include "src/prototype.h" | 40 #include "src/prototype.h" |
| 41 #include "src/regexp/regexp-stack.h" | 41 #include "src/regexp/regexp-stack.h" |
| 42 #include "src/runtime-profiler.h" | 42 #include "src/runtime-profiler.h" |
| 43 #include "src/simulator.h" | 43 #include "src/simulator.h" |
| 44 #include "src/snapshot/deserializer.h" | 44 #include "src/snapshot/deserializer.h" |
| 45 #include "src/tracing/tracing-category-observer.h" |
| 45 #include "src/v8.h" | 46 #include "src/v8.h" |
| 46 #include "src/version.h" | 47 #include "src/version.h" |
| 47 #include "src/vm-state-inl.h" | 48 #include "src/vm-state-inl.h" |
| 48 #include "src/wasm/wasm-module.h" | 49 #include "src/wasm/wasm-module.h" |
| 49 #include "src/zone/accounting-allocator.h" | 50 #include "src/zone/accounting-allocator.h" |
| 50 | 51 |
| 51 namespace v8 { | 52 namespace v8 { |
| 52 namespace internal { | 53 namespace internal { |
| 53 | 54 |
| 54 base::Atomic32 ThreadId::highest_thread_id_ = 0; | 55 base::Atomic32 ThreadId::highest_thread_id_ = 0; |
| (...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2730 if (FLAG_turbo_stats_nvp) { | 2731 if (FLAG_turbo_stats_nvp) { |
| 2731 AsPrintableStatistics ps = {*turbo_statistics(), true}; | 2732 AsPrintableStatistics ps = {*turbo_statistics(), true}; |
| 2732 os << ps << std::endl; | 2733 os << ps << std::endl; |
| 2733 } | 2734 } |
| 2734 } | 2735 } |
| 2735 if (hstatistics() != nullptr) hstatistics()->Print(); | 2736 if (hstatistics() != nullptr) hstatistics()->Print(); |
| 2736 delete turbo_statistics_; | 2737 delete turbo_statistics_; |
| 2737 turbo_statistics_ = nullptr; | 2738 turbo_statistics_ = nullptr; |
| 2738 delete hstatistics_; | 2739 delete hstatistics_; |
| 2739 hstatistics_ = nullptr; | 2740 hstatistics_ = nullptr; |
| 2740 if (FLAG_runtime_call_stats && | 2741 if (V8_UNLIKELY(FLAG_runtime_stats == |
| 2741 !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED()) { | 2742 v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) { |
| 2742 OFStream os(stdout); | 2743 OFStream os(stdout); |
| 2743 counters()->runtime_call_stats()->Print(os); | 2744 counters()->runtime_call_stats()->Print(os); |
| 2744 counters()->runtime_call_stats()->Reset(); | 2745 counters()->runtime_call_stats()->Reset(); |
| 2745 } | 2746 } |
| 2746 } | 2747 } |
| 2747 | 2748 |
| 2748 | 2749 |
| 2749 HStatistics* Isolate::GetHStatistics() { | 2750 HStatistics* Isolate::GetHStatistics() { |
| 2750 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); | 2751 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
| 2751 return hstatistics(); | 2752 return hstatistics(); |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3486 // Then check whether this scope intercepts. | 3487 // Then check whether this scope intercepts. |
| 3487 if ((flag & intercept_mask_)) { | 3488 if ((flag & intercept_mask_)) { |
| 3488 intercepted_flags_ |= flag; | 3489 intercepted_flags_ |= flag; |
| 3489 return true; | 3490 return true; |
| 3490 } | 3491 } |
| 3491 return false; | 3492 return false; |
| 3492 } | 3493 } |
| 3493 | 3494 |
| 3494 } // namespace internal | 3495 } // namespace internal |
| 3495 } // namespace v8 | 3496 } // namespace v8 |
| OLD | NEW |