From: fennecdjay Date: Sun, 20 Oct 2019 15:08:32 +0000 (+0200) Subject: :art: NoOp is a true opcode X-Git-Tag: nightly~2119 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=84ec3084502b8bcd4371f519d1fe889f47a60a6d;p=gwion.git :art: NoOp is a true opcode --- diff --git a/src/vm/vm_code.c b/src/vm/vm_code.c index 24829335..e56f9035 100644 --- a/src/vm/vm_code.c +++ b/src/vm/vm_code.c @@ -56,10 +56,6 @@ ANN static m_bit* tobytecode(MemPool p, const VM_Code code) { if(instr->opcode < eGack) memcpy(ptr + i*BYTECODE_SZ, instr, BYTECODE_SZ); else { - if(instr->execute == NoOp) { // RegSetImm - memset(ptr + i*BYTECODE_SZ, 0, BYTECODE_SZ); - continue; - } *(m_bit*)(ptr + (i*BYTECODE_SZ)) = instr->opcode; *(Instr*)(ptr + (i*BYTECODE_SZ) + SZ_INT) = instr; *(f_instr*)(ptr + (i*BYTECODE_SZ) + SZ_INT*2) = instr->execute;