lib/tenderjit/temp_stack.rb
# Returns the info stored for stack location +idx+.  0 is the TOP of the
# stack, or the last thing pushed.
Returns the info stored for stack location +idx+.  0 is the TOP of the
stack, or the last thing pushed.
Returns the info stored for stack location + idx + . 0 is the TOP of the stack or the last thing pushed .
def peek idx
      idx = @stack.length - idx - 1
      raise IndexError if idx < 0
      @stack.fetch(idx)
    end
def peek idx idx = @stack . length - idx - 1 raise IndexError if idx < 0 @stack . fetch ( idx ) end
Returns the info stored for stack location +idx+.
Returns the info stored for stack location + idx + .
idx