Mercurial > hg > truffle
changeset 10872:33a2ca7c3bc8
Support for byte fields in LIR instructions.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 25 Jul 2013 11:50:59 +0200 |
parents | c3b09d69dfde |
children | 191a9e4a2d2c |
files | graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java Wed Jul 24 17:57:52 2013 -0700 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRIntrospection.java Thu Jul 25 11:50:59 2013 +0200 @@ -202,6 +202,8 @@ return String.valueOf(unsafe.getFloat(obj, offset)); } else if (type == double.class) { return String.valueOf(unsafe.getDouble(obj, offset)); + } else if (type == byte.class) { + return String.valueOf(unsafe.getByte(obj, offset)); } else if (!type.isPrimitive()) { Object value = unsafe.getObject(obj, offset); if (!type.isArray()) { @@ -210,6 +212,8 @@ return Arrays.toString((int[]) value); } else if (type == double[].class) { return Arrays.toString((double[]) value); + } else if (type == byte[].class) { + return Arrays.toString((byte[]) value); } else if (!type.getComponentType().isPrimitive()) { return Arrays.toString((Object[]) value); }