mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 621512 - JM: jsop_length should use urshift32 instead of rshiftPtr (r=sstangl).
This commit is contained in:
parent
add610df92
commit
157546a69c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user