test/lib/sun/hotspot/code/CodeBlob.java
changeset 42532 4780f4130eb0
parent 41533 64e1caddf380
equal deleted inserted replaced
42531:37ee95196b17 42532:4780f4130eb0
    47   }
    47   }
    48   protected CodeBlob(Object[] obj) {
    48   protected CodeBlob(Object[] obj) {
    49     assert obj.length == 4;
    49     assert obj.length == 4;
    50     name = (String) obj[0];
    50     name = (String) obj[0];
    51     size = (Integer) obj[1];
    51     size = (Integer) obj[1];
    52     code_blob_type = BlobType.values()[(Integer) obj[2]];
    52     int blob_type_index = (Integer) obj[2];
    53     assert code_blob_type.id == (Integer) obj[2];
    53     if (blob_type_index == -1) { // AOT
       
    54       code_blob_type = null;
       
    55     } else {
       
    56       code_blob_type = BlobType.values()[blob_type_index];
       
    57       assert code_blob_type.id == (Integer) obj[2];
       
    58     }
    54     address = (Long) obj[3];
    59     address = (Long) obj[3];
    55   }
    60   }
    56   public final String name;
    61   public final String name;
    57   public final int size;
    62   public final int size;
    58   public final BlobType code_blob_type;
    63   public final BlobType code_blob_type;