提交 4afee991 编写于 作者: T twisti

8139170: JVMCI refresh

Reviewed-by: kvn
上级 a7c46034
......@@ -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
+ '}';
}
}
......@@ -39,12 +39,12 @@ public class NMethod extends CodeBlob {
comp_level = (Integer) obj[1];
insts = (byte[]) obj[2];
compile_id = (Integer) obj[3];
address = (Long) obj[4];
entry_point = (Long) obj[4];
}
public final byte[] insts;
public final int comp_level;
public final int compile_id;
public final long address;
public final long entry_point;
@Override
public String toString() {
......@@ -53,7 +53,7 @@ public class NMethod extends CodeBlob {
+ ", insts=" + insts
+ ", comp_level=" + comp_level
+ ", compile_id=" + compile_id
+ ", address=" + address
+ ", entry_point=" + entry_point
+ '}';
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册