Comment 4 for bug 1669069

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Found in the code:
const int S=sizeof(char*); // 4 = x86, 8 = x86-64
if (*(char*)&t!=0x78 || (S!=4 && S!=8))
    error("JIT supported only for x86-32 and x86-64");

Yet the arch check code is not strong, it lets ppc through and then fails.
It also seems to have "invalid instruction" code detection but that only works on x86 as well.

TL;DR Jit in zpac isn't good for non x86.