Chromium Code Reviews| 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 "include/v8-tracing.h" | |
| 12 #include "src/ast/context-slot-cache.h" | 13 #include "src/ast/context-slot-cache.h" |
| 13 #include "src/base/hashmap.h" | 14 #include "src/base/hashmap.h" |
| 14 #include "src/base/platform/platform.h" | 15 #include "src/base/platform/platform.h" |
| 15 #include "src/base/sys-info.h" | 16 #include "src/base/sys-info.h" |
| 16 #include "src/base/utils/random-number-generator.h" | 17 #include "src/base/utils/random-number-generator.h" |
| 17 #include "src/basic-block-profiler.h" | 18 #include "src/basic-block-profiler.h" |
| 18 #include "src/bootstrapper.h" | 19 #include "src/bootstrapper.h" |
| 19 #include "src/cancelable-task.h" | 20 #include "src/cancelable-task.h" |
| 20 #include "src/codegen.h" | 21 #include "src/codegen.h" |
| 21 #include "src/compilation-cache.h" | 22 #include "src/compilation-cache.h" |
| (...skipping 2708 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)) { |
|
alph
2016/10/31 20:43:54
Why '==' ?
It seems to me that it should be '&' in
lpy
2016/10/31 20:54:19
No we don't want to print counters if tracing is e
| |
| 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 |