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.
1324 1325 1326 1327 1328 1329 |
# File 'lib/wardite.rb', line 1324 def initialize(callsig, retsig, code_body) @callsig = callsig @retsig = retsig @code_body = code_body end |
Instance Attribute Details
#callsig ⇒ Object
: Array
1314 1315 1316 |
# File 'lib/wardite.rb', line 1314 def callsig @callsig end |
#code_body ⇒ Object
: CodeSection::CodeBody
1318 1319 1320 |
# File 'lib/wardite.rb', line 1318 def code_body @code_body end |
Instance Method Details
#body ⇒ Object
1332 1333 1334 |
# File 'lib/wardite.rb', line 1332 def body code_body.body end |
#locals_count ⇒ Object
1342 1343 1344 |
# File 'lib/wardite.rb', line 1342 def locals_count code_body.locals_count end |
#locals_type ⇒ Object
1337 1338 1339 |
# File 'lib/wardite.rb', line 1337 def locals_type code_body.locals_type end |