mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 928625 - IonMonkey: Don't emit Unbox operators for values which aren't used. r=bhackett
This commit is contained in:
parent
ab56ef38b6
commit
df65dbd220
3
js/src/jit-test/tests/ion/bug928625.js
Normal file
3
js/src/jit-test/tests/ion/bug928625.js
Normal file
@ -0,0 +1,3 @@
|
||||
var summary = true;
|
||||
evaluate("var summary = 'Array slice when arrays length is assigned';");
|
||||
evaluate('var summary;');
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user