comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 9952:5d91b0b67cba

Introduce Frame.isInitialized in the Truffle API.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 10 Jun 2013 01:16:33 +0200
parents e162d9e32830
children 0c570e82cc1d
comparison
equal deleted inserted replaced
9951:c73690957f9b 9952:5d91b0b67cba
199 if (newSize > tags.length) { 199 if (newSize > tags.length) {
200 locals = Arrays.copyOf(locals, newSize); 200 locals = Arrays.copyOf(locals, newSize);
201 tags = Arrays.copyOf(tags, newSize); 201 tags = Arrays.copyOf(tags, newSize);
202 } 202 }
203 } 203 }
204
205 @Override
206 public boolean isInitialized(FrameSlot slot) {
207 return (this.tags[slot.getIndex()] != FrameSlotKind.Illegal.ordinal());
208 }
204 } 209 }