8139170: JVMCI refresh

Reviewed-by: kvn
This commit is contained in:
Christian Thalinger 2015-11-04 07:01:03 -10:00
parent 3c2ff3bab4
commit 67b29d8e80
2 changed files with 7 additions and 5 deletions

View file

@ -47,22 +47,24 @@ public class CodeBlob {
return new CodeBlob(obj);
}
protected CodeBlob(Object[] obj) {
assert obj.length == 3;
assert obj.length == 4;
name = (String) obj[0];
size = (Integer) obj[1];
code_blob_type = BlobType.values()[(Integer) obj[2]];
assert code_blob_type.id == (Integer) obj[2];
address = (Long) obj[3];
}
public final String name;
public final int size;
public final BlobType code_blob_type;
public final long address;
@Override
public String toString() {
return "CodeBlob{"
+ "name=" + name
+ ", size=" + size
+ ", code_blob_type=" + code_blob_type
+ ", address=" + address
+ '}';
}
}