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_ |