src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/NodeBitMap.java
changeset 48861 47f19ff9903c
parent 47667 390896759aa2
child 50858 2d3e99a72541
equal deleted inserted replaced
48860:5bce1b7e7800 48861:47f19ff9903c
   155         if (bits.length < other.bits.length) {
   155         if (bits.length < other.bits.length) {
   156             bits = Arrays.copyOf(bits, other.bits.length);
   156             bits = Arrays.copyOf(bits, other.bits.length);
   157         }
   157         }
   158         for (int i = 0; i < Math.min(bits.length, other.bits.length); i++) {
   158         for (int i = 0; i < Math.min(bits.length, other.bits.length); i++) {
   159             bits[i] |= other.bits[i];
   159             bits[i] |= other.bits[i];
       
   160         }
       
   161     }
       
   162 
       
   163     public void invert() {
       
   164         for (int i = 0; i < bits.length; i++) {
       
   165             bits[i] = ~bits[i];
   160         }
   166         }
   161     }
   167     }
   162 
   168 
   163     public void grow() {
   169     public void grow() {
   164         nodeCount = Math.max(nodeCount, graph().nodeIdCount());
   170         nodeCount = Math.max(nodeCount, graph().nodeIdCount());