#endif
} else
#endif
- if (LJ_64 && LJ_BE && sz == 4) src++;
+ {
+ src = (int32_t *)&ex->gpr[r-RID_MIN_GPR];
++ if (LJ_64 && LJ_BE && sz == 4) src++;
+ }
}
}
- lua_assert(sz == 1 || sz == 2 || sz == 4 || sz == 8);
+ lj_assertJ(sz == 1 || sz == 2 || sz == 4 || sz == 8,
+ "restore from IR %04d with bad size %d", ref - REF_BIAS, sz);
if (sz == 4) *(int32_t *)dst = *src;
else if (sz == 8) *(int64_t *)dst = *(int64_t *)src;
else if (sz == 1) *(int8_t *)dst = (int8_t)*src;