Mercurial > hg > truffle
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 18161:94f16a759646
Truffle: remove FrameTypeConversion interface
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 23 Oct 2014 13:45:59 +0200 |
parents | 64dcb92ee75a |
children | cef214c6d74a |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Thu Oct 23 12:02:02 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Thu Oct 23 13:45:59 2014 +0200 @@ -45,7 +45,7 @@ this.descriptor = descriptor; this.arguments = arguments; this.locals = new Object[descriptor.getSize()]; - Arrays.fill(locals, descriptor.getTypeConversion().getDefaultValue()); + Arrays.fill(locals, descriptor.getDefaultValue()); this.tags = new byte[descriptor.getSize()]; } @@ -178,12 +178,6 @@ } byte tag = tags[slotIndex]; if (accessKind == FrameSlotKind.Object ? tag != 0 : tag != accessKind.ordinal()) { - if (slot.getKind() == accessKind || tag == 0) { - descriptor.getTypeConversion().updateFrameSlot(this, slot, getValue(slot)); - if (tags[slotIndex] == accessKind.ordinal()) { - return; - } - } throw new FrameSlotTypeException(); } } @@ -193,7 +187,7 @@ int newSize = descriptor.getSize(); if (newSize > oldSize) { locals = Arrays.copyOf(locals, newSize); - Arrays.fill(locals, oldSize, newSize, descriptor.getTypeConversion().getDefaultValue()); + Arrays.fill(locals, oldSize, newSize, descriptor.getDefaultValue()); tags = Arrays.copyOf(tags, newSize); return true; }