Skip to content

Commit

Permalink
Merge pull request #348 from WebAssembly/call-import
Browse files Browse the repository at this point in the history
Add call_import to call section
  • Loading branch information
lukewagner committed Sep 15, 2015
2 parents 07d995b + ddad29d commit 1f05c4c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions AstSemantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,14 @@ Direct calls to a function specify the callee by index into a function table.

* `call_direct`: call function directly

Calls must match the function signature
exactly. [Imported functions](MVP.md#code-loading-and-imports) also have
signatures and are added to the same function table and are thus also callable
via `call_direct`.
Calls must match the function signature exactly.

Like direct calls, calls to [imports](Modules.md#imports-and-exports) specify
the callee by index into an import table (defined by the sequence of import
declarations in the module import section) and the call must match the declared
signature of the import exactly.

* `call_import` : call imported function directly

Indirect calls may be made to a value of function-pointer type. A
function-pointer value may be obtained for a given function as specified by its index
Expand Down

0 comments on commit 1f05c4c

Please sign in to comment.