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

Unified Diff: runtime/vm/compiler_stats.h

Issue 1711163002: Remove more things (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/compiler_stats.h
diff --git a/runtime/vm/compiler_stats.h b/runtime/vm/compiler_stats.h
index 296b2a417404431a9d9b13b192f91bed7f050ec4..9b9e67b7a0898677cf81139b7cfdc66ac1a54b8e 100644
--- a/runtime/vm/compiler_stats.h
+++ b/runtime/vm/compiler_stats.h
@@ -72,20 +72,22 @@ class CompilerStats {
};
#define INC_STAT(thread, counter, incr) \
- if (FLAG_compiler_stats) { \
+ if (FLAG_support_compiler_stats && FLAG_compiler_stats) { \
MutexLocker ml((thread)->isolate()->mutex()); \
(thread)->isolate()->compiler_stats()->counter += (incr); \
}
#define STAT_VALUE(thread, counter) \
- ((FLAG_compiler_stats != false) ? \
+ ((FLAG_support_compiler_stats && FLAG_compiler_stats) ? \
(thread)->isolate()->compiler_stats()->counter : 0)
#define CSTAT_TIMER_SCOPE(thr, t) \
- TimerScope timer(FLAG_compiler_stats, \
- FLAG_compiler_stats ? &((thr)->isolate()->compiler_stats()->t) : NULL, \
+ TimerScope timer(FLAG_support_compiler_stats && FLAG_compiler_stats, \
+ (FLAG_support_compiler_stats && FLAG_compiler_stats) ? \
+ &((thr)->isolate()->compiler_stats()->t) : NULL, \
thr);
+
} // namespace dart
#endif // VM_COMPILER_STATS_H_

Powered by Google App Engine
This is Rietveld 408576698