Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | dc3e86fd3be1 |
children | 1a2d258d481a |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Wed Jan 23 16:34:57 2013 +0100 @@ -49,7 +49,8 @@ this.arguments = arguments; this.currentVersion = descriptor.getCurrentVersion(); this.locals = new Object[descriptor.getSize()]; - // The tags are only needed for assertion checking, so initialize the field only when assertions are enabled + // The tags are only needed for assertion checking, so initialize the field only when + // assertions are enabled assert (this.tags = new Class[descriptor.getSize()]) != null; } @@ -133,7 +134,7 @@ set(slot, Double.class, value); } - private Object get(FrameSlot slot, Class< ? > accessType, Object defaultValue) { + private Object get(FrameSlot slot, Class<?> accessType, Object defaultValue) { Object value = locals[slot.getIndex()]; assert verifyGet(slot, accessType, value); if (value == null) { @@ -143,9 +144,9 @@ } } - private boolean verifyGet(FrameSlot slot, Class< ? > accessType, Object value) { + private boolean verifyGet(FrameSlot slot, Class<?> accessType, Object value) { assert descriptor.getSlots().get(slot.getIndex()) == slot; - Class< ? > tag = tags[slot.getIndex()]; + Class<?> tag = tags[slot.getIndex()]; if (value == null) { assert tag == null || tag == Object.class; } else { @@ -154,12 +155,12 @@ return true; } - private void set(FrameSlot slot, Class< ? > accessType, Object value) { + private void set(FrameSlot slot, Class<?> accessType, Object value) { assert verifySet(slot, accessType, value); locals[slot.getIndex()] = value; } - private boolean verifySet(FrameSlot slot, Class< ? > accessType, Object value) { + private boolean verifySet(FrameSlot slot, Class<?> accessType, Object value) { assert descriptor.getSlots().get(slot.getIndex()) == slot; tags[slot.getIndex()] = accessType; assert accessType.isAssignableFrom(slot.getType()) : "Local variable " + slot + ": " + accessType + " is not assignable from " + slot.getType();