Bug 928625 - IonMonkey: Don't emit Unbox operators for values which aren't used. r=bhackett

This commit is contained in:
Dan Gohman 2013-10-22 07:33:26 -07:00
parent ab56ef38b6
commit df65dbd220
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
var summary = true;
evaluate("var summary = 'Array slice when arrays length is assigned';");
evaluate('var summary;');

View File

@ -6106,7 +6106,7 @@ IonBuilder::pushTypeBarrier(MInstruction *ins, types::TemporaryTypeSet *observed
{
// Barriers are never needed for instructions whose result will not be used.
if (BytecodeIsPopped(pc))
needsBarrier = false;
return true;
// If the instruction has no side effects, we'll resume the entire operation.
// The actual type barrier will occur in the interpreter. If the