From 4cf0c392c171fde1ea2bf1aeb415bfd828bf0a63 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 4 Mar 2016 10:45:21 -0800 Subject: Add an opcode for call_indirect. --- BinaryEncoding.md | 1 + 1 file changed, 1 insertion(+) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index a34e63c..35464d7 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -316,6 +316,7 @@ The table switch operator is then immediately followed by `case_count` case expr | `store_global` | `0x11` | index = `varuint32` | * nonstandard internal opcode | | `call_function` | `0x12` | function_index = `varuint32` | call a function by its index | | `call_indirect` | `0x13` | signature_index = `varuint32` | call a function indirect with an expected signature | +| `call_import` | `0x09` | import_index = `varuint32` | call an imported function by its index | ## Memory-related operators ([described here](AstSemantics.md#linear-memory-accesses)) -- cgit v1.2.3 From 78472b4c501815dec03d7b2cda8a25093b489359 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 4 Mar 2016 10:45:52 -0800 Subject: Rename call_function to call, to match AstSemantics.md. --- BinaryEncoding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index 35464d7..bb8555e 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -314,7 +314,7 @@ The table switch operator is then immediately followed by `case_count` case expr | `set_local` | `0x0f` | local_index = `varuint32` | write a local variable or parameter | | `load_global` | `0x10` | index = `varuint32` | * nonstandard internal opcode | | `store_global` | `0x11` | index = `varuint32` | * nonstandard internal opcode | -| `call_function` | `0x12` | function_index = `varuint32` | call a function by its index | +| `call` | `0x12` | function_index = `varuint32` | call a function by its index | | `call_indirect` | `0x13` | signature_index = `varuint32` | call a function indirect with an expected signature | | `call_import` | `0x09` | import_index = `varuint32` | call an imported function by its index | -- cgit v1.2.3