From 893da5a6881f45cc2c837e3d0c20141401cc00d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 22 Jul 2020 17:16:20 +0200 Subject: [PATCH] :bomb: Improve struct releasing --- src/emit/emit.c | 1 - src/vm/vm.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 7a55d21c..e7660b04 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -808,7 +808,6 @@ ANN static m_bool emit_exp_call(const Emitter emit, const Exp_Call* exp_call) { } const Exp e = exp_self(exp_call); if(exp_getvar(e)) { -puts("here"); regpop(emit, exp_self(exp_call)->info->type->size - SZ_INT); const Instr instr = emit_add_instr(emit, Reg2RegAddr); instr->m_val = -SZ_INT; diff --git a/src/vm/vm.c b/src/vm/vm.c index 887e6d04..b4582fcf 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -429,7 +429,6 @@ structmember: *(m_bit**)(reg-SZ_INT) = *(m_bit**)(*(m_bit**)(reg-SZ_INT) + (m_int)VAL); DISPATCH() structmemberfloat: -printf("struct: %p\n", *(m_bit**)(reg-SZ_INT)); *(m_bit**)(reg-SZ_INT) = *(m_bit**)(*(m_bit**)(reg-SZ_INT) + (m_int)VAL); DISPATCH() structmemberother: @@ -467,7 +466,6 @@ allocfloat: reg += SZ_FLOAT; DISPATCH() allocother: -puts("here!!!"); // LOOP_OPTIM for(m_uint i = 0; i <= VAL2; i += SZ_INT) *(m_uint*)(reg+i) = (*(m_uint*)(mem+VAL+i) = 0); -- 2.43.0