diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-04-06 12:00:09 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:33 -0400 |
commit | e98d2c5ec818abe9a274055c2308bf3488358529 (patch) | |
tree | 9e7ddc2215e903809c99cb119d635d5d7e07cde4 /yjit_core.h | |
parent | ad5cc39dcfd25e62ee92f7e82d4913631ab42355 (diff) |
Add ctcx_stack_push_local()
Diffstat (limited to 'yjit_core.h')
-rw-r--r-- | yjit_core.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yjit_core.h b/yjit_core.h index 658a0cc691..cb47d013a9 100644 --- a/yjit_core.h +++ b/yjit_core.h @@ -73,8 +73,8 @@ typedef enum yjit_temp_loc { TEMP_STACK = 0, TEMP_SELF, - //TEMP_LOCAL, // Local with index - //TEMP_CONST, // Small constant (0, 1, 2, Qnil, Qfalse, Qtrue) + TEMP_LOCAL, // Local with index + //TEMP_CONST, // Small constant (0, 1, 2, Qnil, Qfalse, Qtrue) } temp_loc_t; @@ -218,6 +218,7 @@ typedef struct yjit_block_version x86opnd_t ctx_sp_opnd(ctx_t* ctx, int32_t offset_bytes); x86opnd_t ctx_stack_push(ctx_t* ctx, val_type_t type); x86opnd_t ctx_stack_push_self(ctx_t* ctx); +x86opnd_t ctx_stack_push_local(ctx_t* ctx, size_t local_idx); x86opnd_t ctx_stack_pop(ctx_t* ctx, size_t n); x86opnd_t ctx_stack_opnd(ctx_t* ctx, int32_t idx); val_type_t ctx_get_temp_type(const ctx_t* ctx, size_t idx); |