mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Somewhat 60 level of security.
Somewhat 60 level of security.
This commit is contained in:
parent
98e863440f
commit
aec88a162c
1 changed files with 6 additions and 1 deletions
|
|
@ -9472,6 +9472,11 @@ CodeGenerator::linkSharedStubs(JSContext* cx)
|
|||
bool
|
||||
CodeGenerator::link(JSContext* cx, CompilerConstraintList* constraints)
|
||||
{
|
||||
// We cancel off-thread Ion compilations in a few places during GC, but if
|
||||
// this compilation was performed off-thread it will already have been
|
||||
// removed from the relevant lists by this point. Don't allow GC here.
|
||||
JS::AutoAssertNoGC nogc(cx);
|
||||
|
||||
RootedScript script(cx, gen->info().script());
|
||||
OptimizationLevel optimizationLevel = gen->optimizationInfo().level();
|
||||
|
||||
|
|
@ -9546,7 +9551,7 @@ CodeGenerator::link(JSContext* cx, CompilerConstraintList* constraints)
|
|||
// read barriers which were skipped while compiling the script off thread.
|
||||
Linker linker(masm);
|
||||
AutoFlushICache afc("IonLink");
|
||||
JitCode* code = linker.newCode<CanGC>(cx, ION_CODE, !patchableBackedges_.empty());
|
||||
JitCode* code = linker.newCode<NoGC>(cx, ION_CODE, !patchableBackedges_.empty());
|
||||
if (!code)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue