diff --git a/js/src/ion/arm/MacroAssembler-arm.h b/js/src/ion/arm/MacroAssembler-arm.h index 0a18278ffba..9c1ad077465 100644 --- a/js/src/ion/arm/MacroAssembler-arm.h +++ b/js/src/ion/arm/MacroAssembler-arm.h @@ -706,7 +706,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM jsval_layout jv = JSVAL_TO_IMPL(val); ma_mov(Imm32(jv.s.tag), lr); ma_str(lr, Address(dest.base, dest.offset + 4)); - if (val.isGCThing()) + if (val.isMarkable()) ma_mov(ImmGCPtr(reinterpret_cast(val.toGCThing())), lr); else ma_mov(Imm32(jv.s.payload.i32), lr); @@ -728,7 +728,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM void pushValue(const Value &val) { jsval_layout jv = JSVAL_TO_IMPL(val); push(Imm32(jv.s.tag)); - if (val.isGCThing()) + if (val.isMarkable()) push(ImmGCPtr(reinterpret_cast(val.toGCThing()))); else push(Imm32(jv.s.payload.i32)); diff --git a/js/src/ion/x86/MacroAssembler-x86.h b/js/src/ion/x86/MacroAssembler-x86.h index 815d552b062..a15c08a7498 100644 --- a/js/src/ion/x86/MacroAssembler-x86.h +++ b/js/src/ion/x86/MacroAssembler-x86.h @@ -121,7 +121,7 @@ class MacroAssemblerX86 : public MacroAssemblerX86Shared void moveValue(const Value &val, Register type, Register data) { jsval_layout jv = JSVAL_TO_IMPL(val); movl(Imm32(jv.s.tag), type); - if (val.isGCThing()) + if (val.isMarkable()) movl(ImmGCPtr(reinterpret_cast(val.toGCThing())), data); else movl(Imm32(jv.s.payload.i32), data); @@ -183,7 +183,7 @@ class MacroAssemblerX86 : public MacroAssemblerX86Shared void pushValue(const Value &val) { jsval_layout jv = JSVAL_TO_IMPL(val); push(Imm32(jv.s.tag)); - if (val.isGCThing()) + if (val.isMarkable()) push(ImmGCPtr(reinterpret_cast(val.toGCThing()))); else push(Imm32(jv.s.payload.i32));