# HG changeset patch # User Andreas Woess # Date 1423738103 -3600 # Node ID 21a3a49fa1cab7e3cbb8524281ff4494553c180f # Parent a7247418a58b7ce03452223aac1f23e10a9ccdec Truffle: fix frame resize regression diff -r a7247418a58b -r 21a3a49fa1ca graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java Thu Feb 12 10:18:34 2015 +0100 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/FrameWithoutBoxing.java Thu Feb 12 11:48:23 2015 +0100 @@ -243,26 +243,24 @@ private void verifySet(FrameSlot slot, FrameSlotKind accessKind) { int slotIndex = slot.getIndex(); - byte[] tagsArray = getTags(); - if (slotIndex >= tagsArray.length) { + if (slotIndex >= getTags().length) { CompilerDirectives.transferToInterpreter(); if (!resize()) { throw new IllegalArgumentException(String.format("The frame slot '%s' is not known by the frame descriptor.", slot)); } } - tagsArray[slotIndex] = (byte) accessKind.ordinal(); + getTags()[slotIndex] = (byte) accessKind.ordinal(); } private void verifyGet(FrameSlot slot, FrameSlotKind accessKind) throws FrameSlotTypeException { int slotIndex = slot.getIndex(); - byte[] tagsArray = getTags(); - if (slotIndex >= tagsArray.length) { + if (slotIndex >= getTags().length) { CompilerDirectives.transferToInterpreter(); if (!resize()) { throw new IllegalArgumentException(String.format("The frame slot '%s' is not known by the frame descriptor.", slot)); } } - byte tag = tagsArray[slotIndex]; + byte tag = this.getTags()[slotIndex]; if (tag != accessKind.ordinal()) { CompilerDirectives.transferToInterpreter(); throw new FrameSlotTypeException();