| 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 2551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2562 if (FLAG_turbo_stats_nvp) { | 2562 if (FLAG_turbo_stats_nvp) { |
| 2563 AsPrintableStatistics ps = {*turbo_statistics(), true}; | 2563 AsPrintableStatistics ps = {*turbo_statistics(), true}; |
| 2564 os << ps << std::endl; | 2564 os << ps << std::endl; |
| 2565 } | 2565 } |
| 2566 } | 2566 } |
| 2567 if (hstatistics() != nullptr) hstatistics()->Print(); | 2567 if (hstatistics() != nullptr) hstatistics()->Print(); |
| 2568 delete turbo_statistics_; | 2568 delete turbo_statistics_; |
| 2569 turbo_statistics_ = nullptr; | 2569 turbo_statistics_ = nullptr; |
| 2570 delete hstatistics_; | 2570 delete hstatistics_; |
| 2571 hstatistics_ = nullptr; | 2571 hstatistics_ = nullptr; |
| 2572 if (FLAG_runtime_call_stats) { | 2572 if (FLAG_runtime_call_stats && |
| 2573 !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED()) { |
| 2573 OFStream os(stdout); | 2574 OFStream os(stdout); |
| 2574 counters()->runtime_call_stats()->Print(os); | 2575 counters()->runtime_call_stats()->Print(os); |
| 2575 counters()->runtime_call_stats()->Reset(); | 2576 counters()->runtime_call_stats()->Reset(); |
| 2576 } | 2577 } |
| 2577 } | 2578 } |
| 2578 | 2579 |
| 2579 | 2580 |
| 2580 HStatistics* Isolate::GetHStatistics() { | 2581 HStatistics* Isolate::GetHStatistics() { |
| 2581 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); | 2582 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
| 2582 return hstatistics(); | 2583 return hstatistics(); |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3162 // Then check whether this scope intercepts. | 3163 // Then check whether this scope intercepts. |
| 3163 if ((flag & intercept_mask_)) { | 3164 if ((flag & intercept_mask_)) { |
| 3164 intercepted_flags_ |= flag; | 3165 intercepted_flags_ |= flag; |
| 3165 return true; | 3166 return true; |
| 3166 } | 3167 } |
| 3167 return false; | 3168 return false; |
| 3168 } | 3169 } |
| 3169 | 3170 |
| 3170 } // namespace internal | 3171 } // namespace internal |
| 3171 } // namespace v8 | 3172 } // namespace v8 |
| OLD | NEW |