Use ImmTag instead of Imm32. (Bug 735406 fix, r=orange)

This commit is contained in:
Nicolas Pierron 2012-06-15 22:07:06 -07:00
parent 8ccbd2228d
commit f32b843b1f
2 changed files with 2 additions and 2 deletions

View File

@ -1041,7 +1041,7 @@ CodeGeneratorARM::visitUnbox(LUnbox *unbox)
if (mir->type() == MIRType_ArgObj) {
Register payload = ToRegister(unbox->payload());
if (mir->fallible()) {
masm.ma_cmp(type, Imm32(JSVAL_TAG_MAGIC));
masm.ma_cmp(type, ImmTag(JSVAL_TAG_MAGIC));
if (!bailoutIf(Assembler::NotEqual, unbox->snapshot()))
return false;
masm.ma_cmp(payload, Imm32(JS_OPTIMIZED_ARGUMENTS));

View File

@ -155,7 +155,7 @@ CodeGeneratorX86::visitUnbox(LUnbox *unbox)
if (mir->type() == MIRType_ArgObj) {
Register payload = ToRegister(unbox->payload());
if (mir->fallible()) {
masm.cmpl(ToOperand(unbox->type()), Imm32(JSVAL_TAG_MAGIC));
masm.cmpl(ToOperand(unbox->type()), ImmTag(JSVAL_TAG_MAGIC));
if (!bailoutIf(Assembler::NotEqual, unbox->snapshot()))
return false;
masm.cmpl(payload, Imm32(JS_OPTIMIZED_ARGUMENTS));