# HG changeset patch # User Christian Wimmer # Date 1326857628 28800 # Node ID adce3fb40114cb6358067e6b28ce387fc5100c25 # Parent 2bc254976621b3f28de3532be3612f12a9c6c9ce Add assertions diff -r 2bc254976621 -r adce3fb40114 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/FrameMap.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/FrameMap.java Tue Jan 17 20:35:49 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/FrameMap.java Tue Jan 17 19:33:48 2012 -0800 @@ -231,6 +231,7 @@ * @return A spill slot denoting the reserved memory area. */ public CiStackSlot allocateSpillSlot(CiKind kind) { + assert frameSize == -1 : "frame size must not yet be fixed"; int size = target.sizeInBytes(kind); spillSize = Util.roundUp(spillSize + size, size); return getSlot(kind, 0); @@ -246,6 +247,7 @@ * @return A stack slot describing the begin of the memory block. */ public CiStackSlot allocateStackBlock(int size, boolean refs) { + assert frameSize == -1 : "frame size must not yet be fixed"; if (size == 0) { return null; }