diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-26 17:13:56 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-26 17:13:56 +0300 |
| commit | 4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0 (patch) | |
| tree | 3e9cdf4b34f4f2beffa72a837c409e567d84adb2 /lib/op_defns.h | |
| parent | e8b00dae488e9c9f6f9ef7de99bc340de61541b7 (diff) | |
| download | copyjit-4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0.tar.gz copyjit-4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0.zip | |
apply fixes to make jit-comparison easier
Diffstat (limited to 'lib/op_defns.h')
| -rw-r--r-- | lib/op_defns.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/op_defns.h b/lib/op_defns.h index 5b9cdb2..f930abe 100644 --- a/lib/op_defns.h +++ b/lib/op_defns.h @@ -98,6 +98,27 @@ void *compile_movyo(ctx_t *ctx) ctx->pc += gen_movyo_len; return pc; } +void *compile_peeko(ctx_t *ctx) + { + void *pc = ctx->pc; + memcpy(pc, gen_peeko, gen_peeko_len); + ctx->pc += gen_peeko_len; + return pc; + } +void *compile_popo(ctx_t *ctx) + { + void *pc = ctx->pc; + memcpy(pc, gen_popo, gen_popo_len); + ctx->pc += gen_popo_len; + return pc; + } +void *compile_pusha(ctx_t *ctx) + { + void *pc = ctx->pc; + memcpy(pc, gen_pusha, gen_pusha_len); + ctx->pc += gen_pusha_len; + return pc; + } void *compile_sub(ctx_t *ctx) { void *pc = ctx->pc; |
