Class: WAG::Instruction::CallIndirect

Inherits:
Object
  • Object
show all
Includes:
WAG::Instructable
Defined in:
lib/wag/instructions/call_indirect.rb

Instance Method Summary collapse

Methods included from WAG::Instructable

#f32, #f64, #i32, #i64, #local, #memory

Instance Method Details

#result(*types) ⇒ Object



7
8
9
# File 'lib/wag/instructions/call_indirect.rb', line 7

def result(*types)
  @result = WAG::Result.new(*types)
end

#to_sexprObject



11
12
13
14
15
# File 'lib/wag/instructions/call_indirect.rb', line 11

def to_sexpr
  return [name, @result.to_sexpr] if @result

  super()
end