mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Use AnyRegisterID::fromRaw in peekReg instead of casting to RegisterID, bug 655810. r=bhackett
This commit is contained in:
parent
55015fcf39
commit
fb403a239f
6
js/src/jit-test/tests/jaeger/bug655810.js
Normal file
6
js/src/jit-test/tests/jaeger/bug655810.js
Normal file
@ -0,0 +1,6 @@
|
||||
function f(arr) {
|
||||
var x = arr[0];
|
||||
if (typeof x) {};
|
||||
Math.abs(x);
|
||||
}
|
||||
f([1.2]);
|
@ -434,10 +434,9 @@ struct Registers {
|
||||
|
||||
AnyRegisterID peekReg(uint32 mask) {
|
||||
JS_ASSERT(!empty(mask));
|
||||
int ireg;
|
||||
unsigned ireg;
|
||||
JS_FLOOR_LOG2(ireg, freeMask & mask);
|
||||
RegisterID reg = (RegisterID)ireg;
|
||||
return reg;
|
||||
return AnyRegisterID::fromRaw(ireg);
|
||||
}
|
||||
|
||||
AnyRegisterID peekReg() {
|
||||
|
Loading…
Reference in New Issue
Block a user