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.
1248 1249 1250 1251 1252 1253 |
# File 'lib/wardite.rb', line 1248 def initialize(callsig, retsig, code_body) @callsig = callsig @retsig = retsig @code_body = code_body end |
Instance Attribute Details
#callsig ⇒ Object
: Array
1238 1239 1240 |
# File 'lib/wardite.rb', line 1238 def callsig @callsig end |
#code_body ⇒ Object
: CodeSection::CodeBody
1242 1243 1244 |
# File 'lib/wardite.rb', line 1242 def code_body @code_body end |
Instance Method Details
#body ⇒ Object
1256 1257 1258 |
# File 'lib/wardite.rb', line 1256 def body code_body.body end |
#locals_count ⇒ Object
1266 1267 1268 |
# File 'lib/wardite.rb', line 1266 def locals_count code_body.locals_count end |
#locals_type ⇒ Object
1261 1262 1263 |
# File 'lib/wardite.rb', line 1261 def locals_type code_body.locals_type end |