Class: Wardite::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pc, sp, body, arity, locals) ⇒ Frame

Returns a new instance of Frame.



1045
1046
1047
1048
1049
1050
1051
1052
# File 'lib/wardite.rb', line 1045

def initialize(pc, sp, body, arity, locals)
  @pc = pc
  @sp = sp
  @body = body
  @arity = arity
  @locals = locals
  @labels = []
end

Instance Attribute Details

#arityObject

: Integer



1033
1034
1035
# File 'lib/wardite.rb', line 1033

def arity
  @arity
end

#bodyObject

: Array



1031
1032
1033
# File 'lib/wardite.rb', line 1031

def body
  @body
end

#labelsObject

: Array



1035
1036
1037
# File 'lib/wardite.rb', line 1035

def labels
  @labels
end

#localsObject

: Array



1037
1038
1039
# File 'lib/wardite.rb', line 1037

def locals
  @locals
end

#pcObject

: Integer



1028
1029
1030
# File 'lib/wardite.rb', line 1028

def pc
  @pc
end

#spObject

: Integer



1029
1030
1031
# File 'lib/wardite.rb', line 1029

def sp
  @sp
end