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.



1105
1106
1107
1108
1109
1110
1111
1112
# File 'lib/wardite.rb', line 1105

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

Instance Attribute Details

#arityObject

: Integer



1093
1094
1095
# File 'lib/wardite.rb', line 1093

def arity
  @arity
end

#bodyObject

: Array



1091
1092
1093
# File 'lib/wardite.rb', line 1091

def body
  @body
end

#labelsObject

: Array



1095
1096
1097
# File 'lib/wardite.rb', line 1095

def labels
  @labels
end

#localsObject

: Array



1097
1098
1099
# File 'lib/wardite.rb', line 1097

def locals
  @locals
end

#pcObject

: Integer



1088
1089
1090
# File 'lib/wardite.rb', line 1088

def pc
  @pc
end

#spObject

: Integer



1089
1090
1091
# File 'lib/wardite.rb', line 1089

def sp
  @sp
end