From 2ae802cfaa3dae01627d4c80e2655fb5e69f4e1e Mon Sep 17 00:00:00 2001 From: eunhhu Date: Fri, 25 Sep 2026 15:08:34 +0100 Subject: Add stack copies to Pure modules PICK copies the value n below the top, with its type and owner; SLIDE drops n values under the top. A toolchain can compute a function's arguments once and read each as often as the inlined body needs, instead of repeating the argument's code. The format stays v5: no producer has shipped modules without them. --- prototypes/connections/module.h | 1 + 1 file changed, 1 insertion(+) (limited to 'prototypes/connections/module.h') diff --git a/prototypes/connections/module.h b/prototypes/connections/module.h index 749f9d0..dd20d4a 100644 --- a/prototypes/connections/module.h +++ b/prototypes/connections/module.h @@ -37,6 +37,7 @@ typedef enum { PURE_OP_LIST_COUNT, PURE_OP_LIST_APPEND, PURE_OP_LIST_INSERT, PURE_OP_LIST_REMOVE, PURE_OP_ITEM_GET, PURE_OP_ITEM_SET, PURE_OP_INDEX_LOAD, PURE_OP_INDEX_STORE, PURE_OP_INDEX_MOVE, PURE_OP_INDEX_FIRST, PURE_OP_INDEX_LAST, PURE_OP_INDEX_NUM, PURE_OP_ROW, + PURE_OP_PICK, PURE_OP_SLIDE, PURE_OP_COUNT } PureOpcode; -- cgit v1.2.3