MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

trim slot_buf usage

+3 -2
+3 -2
src/silver/swarm.c
··· 2439 2439 MIR_finish_func(ctx); MIR_finish_module(ctx); func->jit_compiling = false; return NULL; 2440 2440 } 2441 2441 2442 - MIR_reg_t r_slotbuf = MIR_new_func_reg(ctx, jit_func->u.func, MIR_T_I64, "slotbuf"); 2442 + MIR_reg_t r_slotbuf = r_tmp2; 2443 2443 if (has_captured_slots && slotbuf_count > 0) { 2444 + r_slotbuf = MIR_new_func_reg(ctx, jit_func->u.func, MIR_T_I64, "slotbuf"); 2444 2445 MIR_append_insn(ctx, jit_func, 2445 2446 MIR_new_insn(ctx, MIR_ALLOCA, 2446 2447 MIR_new_reg_op(ctx, r_slotbuf), 2447 2448 MIR_new_uint_op(ctx, (uint64_t)slotbuf_count * sizeof(ant_value_t)))); 2448 2449 mir_emit_fill_param_slots_from_args(ctx, jit_func, r_slotbuf, r_args, r_argc, captured_params, param_count); 2449 - } else mir_load_imm(ctx, jit_func, r_slotbuf, 0); 2450 + } 2450 2451 2451 2452 bool needs_lbuf = needs_bailout || feat.needs_close_upval || has_captures; 2452 2453 MIR_reg_t r_lbuf = MIR_new_func_reg(ctx, jit_func->u.func, MIR_T_I64, "lbuf");