From e98d2c5ec818abe9a274055c2308bf3488358529 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Tue, 6 Apr 2021 12:00:09 -0400 Subject: Add ctcx_stack_push_local() --- yjit_core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yjit_core.h') 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); -- cgit v1.2.3