From c68edbe7fbe50b12c98ff2fa31ed58392342affb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 10 May 2020 17:50:36 +0200 Subject: [PATCH] :art: Clean vm --- src/vm/vm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index bd20678c..f9207a29 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -709,15 +709,12 @@ arrayappend: release(*(M_Object*)(reg-SZ_INT), shred); DISPATCH() autoloop: -// m_vector_get(ARRAY(a.obj), *(m_uint*)(mem + VAL), mem + VAL + SZ_INT); m_vector_get(ARRAY(*(M_Object*)(reg-SZ_INT)), *(m_uint*)(mem + VAL), mem + VAL + SZ_INT); goto autoloopcount; autoloopptr: *(m_bit**)(*(M_Object*)(mem + VAL + SZ_INT))->data = m_vector_addr(ARRAY(*(M_Object*)(reg-SZ_INT)), *(m_uint*)(mem + VAL)); -// *(m_bit**)(*(M_Object*)(mem + VAL + SZ_INT))->data = m_vector_addr(ARRAY(a.obj), *(m_uint*)(mem + VAL)); autoloopcount: *(m_uint*)reg = m_vector_size(ARRAY(*(M_Object*)(reg-SZ_INT))) - (*(m_uint*)(mem + VAL))++; -// *(m_uint*)reg = m_vector_size(ARRAY(a.obj)) - (*(m_uint*)(mem + VAL))++; reg += SZ_INT; DISPATCH() arraytop: @@ -729,7 +726,6 @@ arrayaccess: { register const m_int idx = *(m_int*)(reg + SZ_INT * VAL); if(idx < 0 || (m_uint)idx >= m_vector_size(ARRAY(a.obj))) { -// if(idx < 0 || (m_uint)idx >= m_vector_size(ARRAY(*(M_Object*)(reg-SZ_INT)))) { gw_err(_(" ... at index [%" INT_F "]\n"), idx); gw_err(_(" ... at dimension [%" INT_F "]\n"), VAL); VM_OUT -- 2.43.0