| 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 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 OFStream os(stdout); | 2395 OFStream os(stdout); |
| 2396 os << *turbo_statistics() << std::endl; | 2396 os << *turbo_statistics() << std::endl; |
| 2397 } | 2397 } |
| 2398 if (hstatistics() != nullptr) hstatistics()->Print(); | 2398 if (hstatistics() != nullptr) hstatistics()->Print(); |
| 2399 delete turbo_statistics_; | 2399 delete turbo_statistics_; |
| 2400 turbo_statistics_ = nullptr; | 2400 turbo_statistics_ = nullptr; |
| 2401 delete hstatistics_; | 2401 delete hstatistics_; |
| 2402 hstatistics_ = nullptr; | 2402 hstatistics_ = nullptr; |
| 2403 if (FLAG_runtime_call_stats) { | 2403 if (FLAG_runtime_call_stats) { |
| 2404 OFStream os(stdout); | 2404 OFStream os(stdout); |
| 2405 runtime_state()->runtime_call_stats()->Print(os); | 2405 counters()->runtime_call_stats()->Print(os); |
| 2406 runtime_state()->runtime_call_stats()->Reset(); | 2406 counters()->runtime_call_stats()->Reset(); |
| 2407 } | 2407 } |
| 2408 } | 2408 } |
| 2409 | 2409 |
| 2410 | 2410 |
| 2411 HStatistics* Isolate::GetHStatistics() { | 2411 HStatistics* Isolate::GetHStatistics() { |
| 2412 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); | 2412 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
| 2413 return hstatistics(); | 2413 return hstatistics(); |
| 2414 } | 2414 } |
| 2415 | 2415 |
| 2416 | 2416 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2858 // Then check whether this scope intercepts. | 2858 // Then check whether this scope intercepts. |
| 2859 if ((flag & intercept_mask_)) { | 2859 if ((flag & intercept_mask_)) { |
| 2860 intercepted_flags_ |= flag; | 2860 intercepted_flags_ |= flag; |
| 2861 return true; | 2861 return true; |
| 2862 } | 2862 } |
| 2863 return false; | 2863 return false; |
| 2864 } | 2864 } |
| 2865 | 2865 |
| 2866 } // namespace internal | 2866 } // namespace internal |
| 2867 } // namespace v8 | 2867 } // namespace v8 |
| OLD | NEW |