Class: Wardite::WasmFunction
- Inherits:
-
Object
- Object
- Wardite::WasmFunction
- Defined in:
- lib/wardite.rb
Overview
TODO: common interface btw. WasmFunction and ExternalFunction?
Instance Attribute Summary collapse
-
#callsig ⇒ Object
: Array.
-
#code_body ⇒ Object
: CodeSection::CodeBody.
-
#retsig ⇒ Object
: Array.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(callsig, retsig, code_body) ⇒ WasmFunction
constructor
A new instance of WasmFunction.
- #locals_count ⇒ Object
- #locals_type ⇒ Object
Constructor Details
#initialize(callsig, retsig, code_body) ⇒ WasmFunction
Returns a new instance of WasmFunction.
812 813 814 815 816 817 |
# File 'lib/wardite.rb', line 812 def initialize(callsig, retsig, code_body) @callsig = callsig @retsig = retsig @code_body = code_body end |
Instance Attribute Details
#code_body ⇒ Object
: CodeSection::CodeBody
806 807 808 |
# File 'lib/wardite.rb', line 806 def code_body @code_body end |
Instance Method Details
#body ⇒ Object
820 821 822 |
# File 'lib/wardite.rb', line 820 def body code_body.body end |
#locals_count ⇒ Object
830 831 832 |
# File 'lib/wardite.rb', line 830 def locals_count code_body.locals_count end |
#locals_type ⇒ Object
825 826 827 |
# File 'lib/wardite.rb', line 825 def locals_type code_body.locals_type end |