Mercurial > hg > truffle
changeset 4289:adce3fb40114
Add assertions
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Tue, 17 Jan 2012 19:33:48 -0800 |
parents | 2bc254976621 |
children | 21400bafb3ff |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/FrameMap.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }