Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/debug/BlockPrinter.java @ 2611:bd235cb4375a
FrameState cleanup: split into FrameStateBuilder and fixed-size FrameState, removed MutableFrameState
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 06 May 2011 17:08:00 +0200 |
parents | 274360f98f97 |
children | d3fc4fe063bf |
comparison
equal
deleted
inserted
replaced
2610:39aa89baa165 | 2611:bd235cb4375a |
---|---|
65 | 65 |
66 } | 66 } |
67 | 67 |
68 private static void printFrameState(FrameState newFrameState, LogStream out) { | 68 private static void printFrameState(FrameState newFrameState, LogStream out) { |
69 int startPosition = out.position(); | 69 int startPosition = out.position(); |
70 if (newFrameState.stackEmpty()) { | 70 if (newFrameState.stackSize() == 0) { |
71 out.print("empty stack"); | 71 out.print("empty stack"); |
72 } else { | 72 } else { |
73 out.print("stack ["); | 73 out.print("stack ["); |
74 int i = 0; | 74 int i = 0; |
75 while (i < newFrameState.stackSize()) { | 75 while (i < newFrameState.stackSize()) { |