mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 591788 - Fatal assert ( base == lirbuf->sp || base == eos_ins). r=gal.
This commit is contained in:
parent
9943c6915d
commit
3bf0a90b65
@ -3788,15 +3788,14 @@ TraceRecorder::setImpl(void* p, LIns* i, bool demote)
|
||||
JS_ASSERT( x->isop(LIR_sti) || x->isop(LIR_std));
|
||||
#endif
|
||||
|
||||
int disp;
|
||||
ptrdiff_t disp;
|
||||
LIns *base = x->oprnd2();
|
||||
#ifdef NANOJIT_ARM
|
||||
if (base->isop(LIR_addp)) {
|
||||
disp = base->oprnd2()->immI();
|
||||
if (base->isop(LIR_addp) && base->oprnd2()->isImmP()) {
|
||||
disp = ptrdiff_t(base->oprnd2()->immP());
|
||||
base = base->oprnd1();
|
||||
} else
|
||||
#endif
|
||||
disp = x->disp();
|
||||
} else {
|
||||
disp = x->disp();
|
||||
}
|
||||
|
||||
JS_ASSERT(base == lirbuf->sp || base == eos_ins);
|
||||
JS_ASSERT(disp == ((base == lirbuf->sp)
|
||||
|
Loading…
Reference in New Issue
Block a user