Convert enum iteration to use range-based for loops

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 16
    • Component/s: hotspot
    • b01

      Convert the more verbose syntax:

        for (vmIntrinsicsIterator it = vmIntrinsicsRange.begin(); it != vmIntrinsicsRange.end(); ++it) {
          vmIntrinsicID index = *it;
          nt[as_int(index)] = string;
        }

      to

        for (vmIntrinsicID index : EnumRange<vmIntrinsicID>{}) {
          nt[as_int(index)] = string;
        }

            Assignee:
            Ioi Lam
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: