/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; local[i] = false; } stackPtr = 0; }
/** * Flags the next value pushed onto the stack as having local info. */ public void setLocal() { throwIfImmutable(); local[stackPtr] = true; }
/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; local[i] = false; } stackPtr = 0; }
/** * Flags the next value pushed onto the stack as having local info. */ public void setLocal() { throwIfImmutable(); local[stackPtr] = true; }
/** * Flags the next value pushed onto the stack as having local info. */ public void setLocal() { throwIfImmutable(); local[stackPtr] = true; }
/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; local[i] = false; } stackPtr = 0; }
/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; } stackPtr = 0; }
/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; local[i] = false; } stackPtr = 0; }
/** * Flags the next value pushed onto the stack as having local info. */ public void setLocal() { throwIfImmutable(); local[stackPtr] = true; }
/** * Flags the next value pushed onto the stack as having local info. */ public void setLocal() { throwIfImmutable(); local[stackPtr] = true; }
/** * Clears the stack. (That is, this method pops everything off.) */ public void clear() { throwIfImmutable(); for (int i = 0; i < stackPtr; i++) { stack[i] = null; local[i] = false; } stackPtr = 0; }
/** * Replaces all the occurrences of the given uninitialized type in * this stack with its initialized equivalent. * * @param type {@code non-null;} type to replace */ public void makeInitialized(Type type) { if (stackPtr == 0) { // We have to check for this before checking for immutability. return; } throwIfImmutable(); Type initializedType = type.getInitializedType(); for (int i = 0; i < stackPtr; i++) { if (stack[i] == type) { stack[i] = initializedType; } } }
/** * Replaces all the occurrences of the given uninitialized type in * this stack with its initialized equivalent. * * @param type {@code non-null;} type to replace */ public void makeInitialized(Type type) { if (stackPtr == 0) { // We have to check for this before checking for immutability. return; } throwIfImmutable(); Type initializedType = type.getInitializedType(); for (int i = 0; i < stackPtr; i++) { if (stack[i] == type) { stack[i] = initializedType; } } }
/** * Replaces all the occurrences of the given uninitialized type in * this stack with its initialized equivalent. * * @param type {@code non-null;} type to replace */ public void makeInitialized(Type type) { if (stackPtr == 0) { // We have to check for this before checking for immutability. return; } throwIfImmutable(); Type initializedType = type.getInitializedType(); for (int i = 0; i < stackPtr; i++) { if (stack[i] == type) { stack[i] = initializedType; } } }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; local[stackPtr - 1] = false; stackPtr -= result.getType().getCategory(); return result; }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; stackPtr -= result.getType().getCategory(); return result; }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; local[stackPtr - 1] = false; stackPtr -= result.getType().getCategory(); return result; }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; local[stackPtr - 1] = false; stackPtr -= result.getType().getCategory(); return result; }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; local[stackPtr - 1] = false; stackPtr -= result.getType().getCategory(); return result; }
/** * Pops the top element off of the stack. * * @return {@code non-null;} the type formerly on the top of the stack * @throws SimException thrown if the stack is empty */ public TypeBearer pop() { throwIfImmutable(); TypeBearer result = peek(0); stack[stackPtr - 1] = null; local[stackPtr - 1] = false; stackPtr -= result.getType().getCategory(); return result; }