mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 03:27:31 +09:00
Remove unnecessary InvalidateCompilerOutputsForScript call.
This commit is contained in:
parent
667cdd5e24
commit
1c690025d9
3 changed files with 0 additions and 19 deletions
|
|
@ -568,9 +568,6 @@ jit::LinkIonScript(JSContext* cx, HandleScript calleeScript)
|
||||||
// doesn't has code to handle it after linking happened. So it's
|
// doesn't has code to handle it after linking happened. So it's
|
||||||
// not OK to throw a catchable exception from there.
|
// not OK to throw a catchable exception from there.
|
||||||
cx->clearPendingException();
|
cx->clearPendingException();
|
||||||
|
|
||||||
// Reset the TypeZone's compiler output for this script, if any.
|
|
||||||
InvalidateCompilerOutputsForScript(cx, calleeScript);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1511,18 +1511,6 @@ js::FinishCompilation(JSContext* cx, HandleScript script, CompilerConstraintList
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
js::InvalidateCompilerOutputsForScript(JSContext* cx, HandleScript script)
|
|
||||||
{
|
|
||||||
TypeZone& types = cx->zone()->types;
|
|
||||||
if (types.compilerOutputs) {
|
|
||||||
for (auto& co : *types.compilerOutputs) {
|
|
||||||
if (co.script() == script)
|
|
||||||
co.invalidate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
CheckDefinitePropertiesTypeSet(JSContext* cx, TemporaryTypeSet* frozen, StackTypeSet* actual)
|
CheckDefinitePropertiesTypeSet(JSContext* cx, TemporaryTypeSet* frozen, StackTypeSet* actual)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1093,10 +1093,6 @@ bool
|
||||||
FinishCompilation(JSContext* cx, HandleScript script, CompilerConstraintList* constraints,
|
FinishCompilation(JSContext* cx, HandleScript script, CompilerConstraintList* constraints,
|
||||||
RecompileInfo* precompileInfo, bool* isValidOut);
|
RecompileInfo* precompileInfo, bool* isValidOut);
|
||||||
|
|
||||||
// Reset any CompilerOutput present for a script.
|
|
||||||
void
|
|
||||||
InvalidateCompilerOutputsForScript(JSContext* cx, HandleScript script);
|
|
||||||
|
|
||||||
// Update the actual types in any scripts queried by constraints with any
|
// Update the actual types in any scripts queried by constraints with any
|
||||||
// speculative types added during the definite properties analysis.
|
// speculative types added during the definite properties analysis.
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue