()
| 162 | // --- |
| 163 | |
| 164 | @Override |
| 165 | public String toString() { |
| 166 | StringBuilder out = new StringBuilder(); |
| 167 | for (int pc = 0; pc < instSize; ++pc) { |
| 168 | int len = out.length(); |
| 169 | out.append(pc); |
| 170 | if (pc == start) { |
| 171 | out.append('*'); |
| 172 | } |
| 173 | // Use spaces not tabs since they're not always preserved in |
| 174 | // Google Java source, such as our tests. |
| 175 | out.append(" ".substring(out.length() - len)).append(inst[pc]).append('\n'); |
| 176 | } |
| 177 | return out.toString(); |
| 178 | } |
| 179 | } |