Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/isolate.cc

Issue 2053383002: Machine-readable TurboFan compiler statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 deferred->next_->previous_ = deferred->previous_; 2450 deferred->next_->previous_ = deferred->previous_;
2451 } 2451 }
2452 if (deferred->previous_ != NULL) { 2452 if (deferred->previous_ != NULL) {
2453 deferred->previous_->next_ = deferred->next_; 2453 deferred->previous_->next_ = deferred->next_;
2454 } 2454 }
2455 } 2455 }
2456 2456
2457 2457
2458 void Isolate::DumpAndResetCompilationStats() { 2458 void Isolate::DumpAndResetCompilationStats() {
2459 if (turbo_statistics() != nullptr) { 2459 if (turbo_statistics() != nullptr) {
2460 DCHECK(FLAG_turbo_stats || FLAG_turbo_stats_nvp);
2461
2460 OFStream os(stdout); 2462 OFStream os(stdout);
2461 os << *turbo_statistics() << std::endl; 2463 if (FLAG_turbo_stats) {
2464 AsPrintableStatistics ps = {*turbo_statistics(), false};
2465 os << ps << std::endl;
2466 }
2467 if (FLAG_turbo_stats_nvp) {
2468 AsPrintableStatistics ps = {*turbo_statistics(), true};
2469 os << ps << std::endl;
2470 }
2462 } 2471 }
2463 if (hstatistics() != nullptr) hstatistics()->Print(); 2472 if (hstatistics() != nullptr) hstatistics()->Print();
2464 delete turbo_statistics_; 2473 delete turbo_statistics_;
2465 turbo_statistics_ = nullptr; 2474 turbo_statistics_ = nullptr;
2466 delete hstatistics_; 2475 delete hstatistics_;
2467 hstatistics_ = nullptr; 2476 hstatistics_ = nullptr;
2468 if (FLAG_runtime_call_stats) { 2477 if (FLAG_runtime_call_stats) {
2469 OFStream os(stdout); 2478 OFStream os(stdout);
2470 counters()->runtime_call_stats()->Print(os); 2479 counters()->runtime_call_stats()->Print(os);
2471 counters()->runtime_call_stats()->Reset(); 2480 counters()->runtime_call_stats()->Reset();
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
3054 // Then check whether this scope intercepts. 3063 // Then check whether this scope intercepts.
3055 if ((flag & intercept_mask_)) { 3064 if ((flag & intercept_mask_)) {
3056 intercepted_flags_ |= flag; 3065 intercepted_flags_ |= flag;
3057 return true; 3066 return true;
3058 } 3067 }
3059 return false; 3068 return false;
3060 } 3069 }
3061 3070
3062 } // namespace internal 3071 } // namespace internal
3063 } // namespace v8 3072 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698