- avoid function call in VM code.

- return after calling ThrowAbortException because this avoids storing some register variables on the stack.
This commit is contained in:
Christoph Oelckers 2017-05-30 17:50:56 +02:00
commit b50123ec6b
2 changed files with 41 additions and 13 deletions

View file

@ -101,7 +101,7 @@ void ThrowVMException(VMException *x);
}
#define GETADDR(a,o,x) \
if (a == NULL) { ThrowAbortException(x, nullptr); } \
if (a == NULL) { ThrowAbortException(x, nullptr); return 0; } \
ptr = (VM_SBYTE *)a + o
#ifdef NDEBUG