mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add a way to clear the oracle.
This commit is contained in:
parent
0954618ab1
commit
98f67af6d0
@ -268,6 +268,13 @@ Oracle::isStackSlotUndemotable(JSScript* script, jsbytecode* ip, unsigned slot)
|
||||
return _dontDemote.get(hash);
|
||||
}
|
||||
|
||||
/* Clear the oracle. */
|
||||
void
|
||||
Oracle::clear()
|
||||
{
|
||||
_dontDemote.reset();
|
||||
}
|
||||
|
||||
static LIns* demote(LirWriter *out, LInsp i)
|
||||
{
|
||||
if (i->isCall())
|
||||
|
@ -165,6 +165,7 @@ public:
|
||||
bool isGlobalSlotUndemotable(JSScript* script, unsigned slot) const;
|
||||
void markStackSlotUndemotable(JSScript* script, jsbytecode* ip, unsigned slot);
|
||||
bool isStackSlotUndemotable(JSScript* script, jsbytecode* ip, unsigned slot) const;
|
||||
void clear();
|
||||
};
|
||||
|
||||
typedef Queue<uint16> SlotList;
|
||||
|
Loading…
Reference in New Issue
Block a user