comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiStackSlot.java @ 4208:a051fafaa4a9

Improve debug printing
author Christian Wimmer <Christian.Wimmer@Oracle.com>
date Tue, 03 Jan 2012 18:33:54 -0800
parents aaac4894175c
children 1e3ecb08767d
comparison
equal deleted inserted replaced
4207:e2578f3e8ab2 4208:a051fafaa4a9
117 return false; 117 return false;
118 } 118 }
119 119
120 @Override 120 @Override
121 public String toString() { 121 public String toString() {
122 String s;
123 if (!addFrameSize) { 122 if (!addFrameSize) {
124 s = "out:"; 123 return "out:" + offset + kindSuffix();
125 } else if (offset >= 0) { 124 } else if (offset >= 0) {
126 s = "in:"; 125 return "in:" + offset + kindSuffix();
127 } else { 126 } else {
128 s = "spill:"; 127 return "spill:" + (-offset) + kindSuffix();
129 } 128 }
130 return s + offset + kindSuffix();
131 } 129 }
132 130
133 /** 131 /**
134 * Gets this stack slot used to pass an argument from the perspective of a caller. 132 * Gets this stack slot used to pass an argument from the perspective of a caller.
135 */ 133 */