mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Use ImmTag instead of Imm32. (Bug 735406 fix, r=orange)
This commit is contained in:
parent
8ccbd2228d
commit
f32b843b1f
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user