]> Nishi Git Mirror - gwion.git/commitdiff
:bomb: Improve struct releasing
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 22 Jul 2020 15:16:20 +0000 (17:16 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 22 Jul 2020 15:16:20 +0000 (17:16 +0200)
src/emit/emit.c
src/vm/vm.c

index 7a55d21c88a78996ec5e638da1dc698ddb3c1a12..e7660b047d4f5f9ba23a85819b511c8821242a12 100644 (file)
@@ -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;
index 887e6d048f249c454055e110e2f6deff7ecaae50..b4582fcfff8f0b3c4bfe72d59d7f1acd5848f9c8 100644 (file)
@@ -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);