Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 928625 - IonMonkey: Don't emit Unbox operators for values which a…
Browse files Browse the repository at this point in the history
…ren't used. r=bhackett
  • Loading branch information
Dan Gohman committed Oct 22, 2013
1 parent 62baaa0 commit 5cb19e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions js/src/jit-test/tests/ion/bug928625.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var summary = true;
evaluate("var summary = 'Array slice when arrays length is assigned';");
evaluate('var summary;');
2 changes: 1 addition & 1 deletion js/src/jit/IonBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cb19e0

Please sign in to comment.