diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-05-22 14:04:36 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-06-12 13:38:05 +0200 |
| commit | 4f9a2c7a2d8464b04cc08075a7762c6d457090df (patch) | |
| tree | ae8fe229a3a5ba60d08b74299d0c1850685bda86 /private_include/nw/interp.h | |
| parent | f25b015e5b668028c34974bbb22faa4105c26690 (diff) | |
| download | nanowasm-sync-4f9a2c7a2d8464b04cc08075a7762c6d457090df.tar.gz | |
WIP
Diffstat (limited to 'private_include/nw/interp.h')
| -rw-r--r-- | private_include/nw/interp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/private_include/nw/interp.h b/private_include/nw/interp.h index 5fa37bf..c8f3249 100644 --- a/private_include/nw/interp.h +++ b/private_include/nw/interp.h @@ -28,12 +28,14 @@ int interp_start(const struct nw_interp_cfg *cfg, FILE *f, struct nw_interp *i); int interp_run(struct nw_interp *i); int interp_run_limited(struct nw_interp *i, const struct interp_set *ops); int interp_check_opcode(uint8_t op, FILE *f); -int interp_push(struct nw_interp *i, const struct nw_frame *f); int interp_pop(struct nw_interp *i); void *interp_stackptr(const struct nw_interp *i); int interp_stack_push(struct nw_interp *i, const void *src, size_t n); int interp_stack_pop(struct nw_interp *i, void *dst, size_t n); int interp_heap_store(struct nw_interp *i, size_t addr, const void *src, size_t n); int interp_heap_load(struct nw_interp *i, size_t addr, void *dst, size_t n); +int interp_global_push(struct nw_interp *i, const void *src, size_t n); +int interp_global_pop(struct nw_interp *i, void *dst, size_t n); +void *interp_globalptr(const struct nw_interp *i); #endif |
