Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Value.java @ 2834:bfce42cd9c07
Graph duplication now passes all tests
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 31 May 2011 13:34:52 +0200 |
parents | bd17ac598c6e |
children | 14708c03abba |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java Tue May 31 09:51:59 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java Tue May 31 13:34:52 2011 +0200 @@ -22,6 +22,8 @@ */ package com.sun.c1x.ir; +import java.util.*; + import com.oracle.graal.graph.*; import com.sun.c1x.debug.*; import com.sun.cri.ci.*; @@ -213,4 +215,14 @@ public abstract void print(LogStream out); + @Override + public Map<Object, Object> getDebugProperties() { + Map<Object, Object> properties = super.getDebugProperties(); + properties.put("kind", kind.toString()); + properties.put("nonNull", isNonNull); + properties.put("operand", operand == null ? "null" : operand.toString()); + return properties; + } + + }