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.



558
559
560
561
562
563
564
565
# File 'lib/wardite.rb', line 558

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

Instance Attribute Details

#arityObject

: Integer



546
547
548
# File 'lib/wardite.rb', line 546

def arity
  @arity
end

#bodyObject

: Array



544
545
546
# File 'lib/wardite.rb', line 544

def body
  @body
end

#labelsObject

: Array



548
549
550
# File 'lib/wardite.rb', line 548

def labels
  @labels
end

#localsObject

: Array



550
551
552
# File 'lib/wardite.rb', line 550

def locals
  @locals
end

#pcObject

: Integer



541
542
543
# File 'lib/wardite.rb', line 541

def pc
  @pc
end

#spObject

: Integer



542
543
544
# File 'lib/wardite.rb', line 542

def sp
  @sp
end