aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:36 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-10 23:47:36 +0100
commit6b865a70c0f29e5ca9e13fae4a2a18406f44f4ee (patch)
treebe021c1690addf53e342286e9ad76d2232240c90 /src/interp
parentba623c7a3a5b450b9b492de50efceea93df96039 (diff)
downloadnanowasm-6b865a70c0f29e5ca9e13fae4a2a18406f44f4ee.tar.gz
Add current_memory and grow_memory operators
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interp/ops.c b/src/interp/ops.c
index 2bfdff0..4a76fba 100644
--- a/src/interp/ops.c
+++ b/src/interp/ops.c
@@ -77,8 +77,8 @@ static void (*const ops[])(struct nw_interp *) =
NULL, /* OP_I64_STORE8 */
NULL, /* OP_I64_STORE16 */
NULL, /* OP_I64_STORE32 */
- NULL, /* OP_CURRENT_MEMORY */
- NULL, /* OP_GROW_MEMORY */
+ nwp_op_current_memory, /* OP_CURRENT_MEMORY */
+ nwp_op_grow_memory, /* OP_GROW_MEMORY */
nwp_op_i32_const, /* OP_I32_CONST */
nwp_op_i64_const, /* OP_I64_CONST */
NULL, /* OP_F32_CONST */