[INFER] Don't let known types influence whether jsop_not pushes a constant value, bug 647785. r=bhackett

This commit is contained in:
Jan de Mooij 2011-04-05 13:51:56 -07:00
parent 406ea98001
commit 80ef2ee888
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,4 @@
assertEq(-(!Int32Array(5)), -0);
assertEq(-(!Math), -0);
assertEq(-(!{}), -0);
assertEq(-(![]), -0);

View File

@ -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;
}