Bug 621512 - JM: jsop_length should use urshift32 instead of rshiftPtr (r=sstangl).

This commit is contained in:
Jan de Mooij 2010-12-31 01:18:27 -08:00
parent add610df92
commit 157546a69c

View File

@ -2974,7 +2974,7 @@ mjit::Compiler::jsop_length()
} else {
RegisterID str = frame.ownRegForData(top);
masm.loadPtr(Address(str, JSString::offsetOfLengthAndFlags()), str);
masm.rshiftPtr(Imm32(JSString::LENGTH_SHIFT), str);
masm.urshift32(Imm32(JSString::LENGTH_SHIFT), str);
frame.pop();
frame.pushTypedPayload(JSVAL_TYPE_INT32, str);
}