mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Don't let known types influence whether jsop_not pushes a constant value, bug 647785. r=bhackett
This commit is contained in:
parent
406ea98001
commit
80ef2ee888
4
js/src/jit-test/tests/jaeger/bug647785.js
Normal file
4
js/src/jit-test/tests/jaeger/bug647785.js
Normal file
@ -0,0 +1,4 @@
|
||||
assertEq(-(!Int32Array(5)), -0);
|
||||
assertEq(-(!Math), -0);
|
||||
assertEq(-(!{}), -0);
|
||||
assertEq(-(![]), -0);
|
@ -617,8 +617,11 @@ mjit::Compiler::jsop_not()
|
||||
|
||||
case JSVAL_TYPE_OBJECT:
|
||||
{
|
||||
RegisterID reg = frame.allocReg();
|
||||
masm.move(Imm32(0), reg);
|
||||
|
||||
frame.pop();
|
||||
frame.push(BooleanValue(false));
|
||||
frame.pushTypedPayload(JSVAL_TYPE_BOOLEAN, reg);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user