mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8257912: Convert enum iteration to use range-based for loops
Reviewed-by: kbarrett, tschatzl, gziemski
This commit is contained in:
parent
164c55be78
commit
80dac5a87c
10 changed files with 96 additions and 49 deletions
|
@ -234,8 +234,7 @@ void Compile::print_intrinsic_statistics() {
|
|||
if (total == 0) total = 1; // avoid div0 in case of no successes
|
||||
#define PRINT_STAT_LINE(name, c, f) \
|
||||
tty->print_cr(" %4d (%4.1f%%) %s (%s)", (int)(c), ((c) * 100.0) / total, name, f);
|
||||
for (vmIntrinsicsIterator it = vmIntrinsicsRange.begin(); it != vmIntrinsicsRange.end(); ++it) {
|
||||
vmIntrinsicID id = *it;
|
||||
for (vmIntrinsicID id : EnumRange<vmIntrinsicID>{}) {
|
||||
int flags = _intrinsic_hist_flags[as_int(id)];
|
||||
juint count = _intrinsic_hist_count[as_int(id)];
|
||||
if ((flags | count) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue