Trampolines can be 2 words, so take that into account when reserving space for LIR_call instructions (473225, r=graydon).

This commit is contained in:
Andreas Gal 2009-01-12 17:16:21 -08:00
parent 2c008538f1
commit 30be65f596

View File

@ -1131,7 +1131,7 @@ namespace nanojit
// Argument deltas are calculated relative to the final LIns,
// which is the last word in the cluster.
LInsp from = _buf->next() + argc + insSz - 1;
LInsp from = _buf->next() + argc * LIR_FAR_SLOTS + insSz - 1;
for (int32_t i=0; i < argc; i++)
makeReachable(args[i], from);