mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 930993: In out of line truncate, restore registers in the correct order; r=jandem
This commit is contained in:
parent
fcf90538ed
commit
815e367091
6
js/src/jit-test/tests/ion/bug930993.js
Normal file
6
js/src/jit-test/tests/ion/bug930993.js
Normal file
@ -0,0 +1,6 @@
|
||||
x = {};
|
||||
y = x;
|
||||
x.toString = function() {
|
||||
Int8Array(ArrayBuffer)[0] = Float32Array(ArrayBuffer)[0];
|
||||
}
|
||||
print(x << y);
|
@ -752,11 +752,11 @@ CodeGeneratorShared::visitOutOfLineTruncateSlow(OutOfLineTruncateSlow *ool)
|
||||
masm.callWithABI(JS_FUNC_TO_DATA_PTR(void *, js::ToInt32));
|
||||
masm.storeCallResult(dest);
|
||||
|
||||
restoreVolatile(dest);
|
||||
|
||||
if (ool->needFloat32Conversion())
|
||||
masm.pop(src);
|
||||
|
||||
restoreVolatile(dest);
|
||||
|
||||
masm.jump(ool->rejoin());
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user