mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix pinReg() around copyDataIntoReg() in jsop_bitop(). b=600419, r=dvander.
This commit is contained in:
parent
39060e35d5
commit
0d02e95a3d
@ -524,14 +524,14 @@ mjit::Compiler::jsop_bitop(JSOp op)
|
||||
RegisterID rr = frame.tempRegForData(rhs);
|
||||
#endif
|
||||
|
||||
frame.pinReg(rr);
|
||||
if (lhs->isConstant()) {
|
||||
frame.pinReg(rr);
|
||||
reg = frame.allocReg();
|
||||
masm.move(Imm32(lhs->getValue().toInt32()), reg);
|
||||
frame.unpinReg(rr);
|
||||
} else {
|
||||
reg = frame.copyDataIntoReg(lhs);
|
||||
}
|
||||
frame.unpinReg(rr);
|
||||
|
||||
if (op == JSOP_LSH) {
|
||||
masm.lshift32(rr, reg);
|
||||
|
5
js/src/trace-test/tests/jaeger/bug600419.js
Normal file
5
js/src/trace-test/tests/jaeger/bug600419.js
Normal file
@ -0,0 +1,5 @@
|
||||
/* Don't assert. */
|
||||
(function() {
|
||||
var x;
|
||||
[1].map(function(){}, x << x);
|
||||
})()
|
Loading…
Reference in New Issue
Block a user