/** * Kind of the slot. Specified either at * {@link FrameDescriptor#addFrameSlot(java.lang.Object, com.oracle.truffle.api.frame.FrameSlotKind) * creation time} or updated via * {@link FrameDescriptor#setFrameSlotKind(FrameSlot, FrameSlotKind)} method. * * @return current kind of this slot * @since 0.8 or earlier * @deprecated in 1.0 use {@link FrameDescriptor#getFrameSlotKind(FrameSlot)} instead. */ @Deprecated public FrameSlotKind getKind() { return descriptor.getFrameSlotKind(this); }
private static int initializeFrameSlots(FrameDescriptor frameDescriptor, FrameSlot[] frameSlots, byte[] tags, int maxIndex) { int currentMaxIndex = maxIndex; for (int i = 0; i < frameSlots.length; i++) { FrameSlot frameSlot = frameSlots[i]; if (getFrameSlotIndex(frameSlot) > currentMaxIndex) { currentMaxIndex = getFrameSlotIndex(frameSlot); } tags[i] = frameDescriptor.getFrameSlotKind(frameSlot).tag; } return currentMaxIndex; }