perlin-network / life

A secure WebAssembly VM catered for decentralized applications.
MIT License
1.7k stars 119 forks source link

Supporting user-defined parameters for entry point in life. #45

Closed duanbing closed 5 years ago

duanbing commented 5 years ago

When I used life to run an example translated into wast format for pretty display below,

(module
  (func $add (param $lhs i32) (param $rhs i32) (result i32)
    (local i32)
    get_local $lhs
    get_local $rhs
    i32.add
    )
  (export "add" (func $add))
)

the add entrypoint need 2 parameters, but we can't use life cli to pass it. So I pushed this PR.