From: Jérémie Astor Date: Wed, 22 Jul 2020 15:16:20 +0000 (+0200) Subject: :bomb: Improve struct releasing X-Git-Tag: nightly~1432 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=893da5a6881f45cc2c837e3d0c20141401cc00d3;p=gwion.git :bomb: Improve struct releasing --- 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);