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.
1275 1276 1277 1278 1279 1280 |
# File 'lib/wardite.rb', line 1275 def initialize(callsig, retsig, code_body) @callsig = callsig @retsig = retsig @code_body = code_body end |
Instance Attribute Details
#callsig ⇒ Object
: Array
1265 1266 1267 |
# File 'lib/wardite.rb', line 1265 def callsig @callsig end |
#code_body ⇒ Object
: CodeSection::CodeBody
1269 1270 1271 |
# File 'lib/wardite.rb', line 1269 def code_body @code_body end |
Instance Method Details
#body ⇒ Object
1283 1284 1285 |
# File 'lib/wardite.rb', line 1283 def body code_body.body end |
#locals_count ⇒ Object
1293 1294 1295 |
# File 'lib/wardite.rb', line 1293 def locals_count code_body.locals_count end |
#locals_type ⇒ Object
1288 1289 1290 |
# File 'lib/wardite.rb', line 1288 def locals_type code_body.locals_type end |