Bug 511051 - TM/nanojit: use NULL as the condition for unconditional guards, again. r=gal.

This commit is contained in:
Nicholas Nethercote 2009-09-03 13:06:31 +10:00
parent 5adc17c6a5
commit 0abd6c54da
2 changed files with 2 additions and 1 deletions

View File

@ -10077,7 +10077,7 @@ TraceRecorder::enterDeepBailCall()
// Tell nanojit not to discard or defer stack writes before this call.
LIns* guardRec = createGuardRecord(exit);
lir->insGuard(LIR_xbarrier, guardRec, guardRec);
lir->insGuard(LIR_xbarrier, NULL, guardRec);
}
JS_REQUIRES_STACK void

View File

@ -255,6 +255,7 @@ namespace nanojit
LInsp LirBufWriter::insGuard(LOpcode op, LInsp c, LInsp data)
{
debug_only( if (LIR_x == op || LIR_xbarrier == op) NanoAssert(!c); )
return ins2(op, c, data);
}