mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
Push actual guard that failed in a nested call, not the expected.
This commit is contained in:
parent
da23acf9bc
commit
a4438ded7e
@ -1524,7 +1524,7 @@ TraceRecorder::emitTreeCall(Fragment* inner, GuardRecord* lr)
|
||||
import(ti, inner_sp_ins, exit->numGlobalSlots, exit->calldepth,
|
||||
exit->typeMap, exit->typeMap + exit->numGlobalSlots);
|
||||
/* Store the guard pointer in case we exit on an unexpected guard */
|
||||
lir->insStorei(lir->insImmPtr(lr), lirbuf->state, offsetof(InterpState, nestedExit));
|
||||
lir->insStorei(ret, lirbuf->state, offsetof(InterpState, nestedExit));
|
||||
/* Guard that we come out of the inner tree along the same side exit we came out when
|
||||
we called the inner tree at recording time. */
|
||||
guard(true, lir->ins2(LIR_eq, ret, lir->insImmPtr(lr)), NESTED_EXIT);
|
||||
|
Loading…
Reference in New Issue
Block a user