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.
1104 1105 1106 1107 1108 1109 |
# File 'lib/wardite.rb', line 1104 def initialize(callsig, retsig, code_body) @callsig = callsig @retsig = retsig @code_body = code_body end |
Instance Attribute Details
#callsig ⇒ Object
: Array
1094 1095 1096 |
# File 'lib/wardite.rb', line 1094 def callsig @callsig end |
#code_body ⇒ Object
: CodeSection::CodeBody
1098 1099 1100 |
# File 'lib/wardite.rb', line 1098 def code_body @code_body end |
Instance Method Details
#body ⇒ Object
1112 1113 1114 |
# File 'lib/wardite.rb', line 1112 def body code_body.body end |
#locals_count ⇒ Object
1122 1123 1124 |
# File 'lib/wardite.rb', line 1122 def locals_count code_body.locals_count end |
#locals_type ⇒ Object
1117 1118 1119 |
# File 'lib/wardite.rb', line 1117 def locals_type code_body.locals_type end |