diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-15 13:16:54 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-15 13:16:54 +0200 |
commit | 912c07167705613c6db70e542723c7ec2c06c7ea (patch) | |
tree | 119b74c5af8508f663e6fd9cdbdf91b27723b023 /include | |
parent | 2a2d096b61262c2059ea022379869b9c4a70eafa (diff) | |
download | ejit-912c07167705613c6db70e542723c7ec2c06c7ea.tar.gz ejit-912c07167705613c6db70e542723c7ec2c06c7ea.zip |
experiment with allocating regs on stack in interp
+ Avoids having to lug around an execution context, arguably simplified
things but now there's no real way to detect when we run out memory
for regs.
Diffstat (limited to 'include')
-rw-r--r-- | include/ejit/ejit.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/ejit/ejit.h b/include/ejit/ejit.h index 4ab2bbc..48c4dda 100644 --- a/include/ejit/ejit.h +++ b/include/ejit/ejit.h @@ -223,21 +223,6 @@ double ejit_run_func_d(struct ejit_func *f, size_t argc, struct ejit_arg ejit_run_func(struct ejit_func *f, size_t argc, struct ejit_arg args[argc]); - -/* currently unused, the idea is that an escape could get the interpreter state - * and pass it on to speed up entering/exiting the VM, could be useful for more - * dynamic languages */ -struct interp_state; - -long ejit_run_func_ctx_i(struct ejit_func *f, size_t argc, struct ejit_arg args[argc], struct interp_state *ctx); - -int64_t ejit_run_func_ctx_l(struct ejit_func *f, size_t argc, struct ejit_arg args[argc], struct interp_state *ctx); - -float ejit_run_func_ctx_f(struct ejit_func *f, size_t argc, struct ejit_arg args[argc], struct interp_state *ctx); - -double ejit_run_func_ctx_d(struct ejit_func *f, size_t argc, struct ejit_arg args[argc], struct interp_state *ctx); - - void ejit_destroy_func(struct ejit_func *s); #define EJIT_GPR(x) ((struct ejit_gpr){.r = (x)}) |