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.



1072
1073
1074
1075
1076
1077
1078
1079
# File 'lib/wardite.rb', line 1072

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

Instance Attribute Details

#arityObject

: Integer



1060
1061
1062
# File 'lib/wardite.rb', line 1060

def arity
  @arity
end

#bodyObject

: Array



1058
1059
1060
# File 'lib/wardite.rb', line 1058

def body
  @body
end

#labelsObject

: Array



1062
1063
1064
# File 'lib/wardite.rb', line 1062

def labels
  @labels
end

#localsObject

: Array



1064
1065
1066
# File 'lib/wardite.rb', line 1064

def locals
  @locals
end

#pcObject

: Integer



1055
1056
1057
# File 'lib/wardite.rb', line 1055

def pc
  @pc
end

#spObject

: Integer



1056
1057
1058
# File 'lib/wardite.rb', line 1056

def sp
  @sp
end