mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 1115665: Don't do beta optimizations for Compare_Value compares, r=jandem
This commit is contained in:
parent
4face24a5f
commit
3518565414
8
js/src/jit-test/tests/ion/bug1115665.js
Normal file
8
js/src/jit-test/tests/ion/bug1115665.js
Normal file
@ -0,0 +1,8 @@
|
||||
Object.prototype[3] = 3
|
||||
x = Array()
|
||||
function f() {
|
||||
for (i = 0; i < 9; i++) {
|
||||
if (Object[x++] != 0) {}
|
||||
}
|
||||
}
|
||||
f()
|
@ -155,8 +155,11 @@ RangeAnalysis::addBetaNodes()
|
||||
|
||||
MCompare *compare = test->getOperand(0)->toCompare();
|
||||
|
||||
if (compare->compareType() == MCompare::Compare_Unknown)
|
||||
if (compare->compareType() == MCompare::Compare_Unknown ||
|
||||
compare->compareType() == MCompare::Compare_Value)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO: support unsigned comparisons
|
||||
if (compare->compareType() == MCompare::Compare_UInt32)
|
||||
|
Loading…
Reference in New Issue
Block a user