Bug 832070 - LTruncateDToInt32 doesn't need a snapshot (r=sstangl)

--HG--
extra : rebase_source : 0c273db1eb30aa2a51571ac31ce7d160792b61a4
This commit is contained in:
Luke Wagner 2012-12-07 18:54:05 -08:00
parent 43bd40a839
commit 68862cf7e8

View File

@ -1292,10 +1292,7 @@ LIRGenerator::visitTruncateToInt32(MTruncateToInt32 *truncate)
return redefine(truncate, opd);
case MIRType_Double:
{
LTruncateDToInt32 *lir = new LTruncateDToInt32(useRegister(opd), tempFloat());
return assignSnapshot(lir) && define(lir, truncate);
}
return define(new LTruncateDToInt32(useRegister(opd), tempFloat()), truncate);
default:
// Objects might be effectful.