mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Remove remaining conditional GCZeal code.
Creates stubs: jsgc.h/cpp VerifyBarriers() stub MaybeVerifyBarriers() stub GCRuntime::computeNonIncrementalMarkingForValidation() stub GCRuntime::validateIncrementalMarking() stub GCRuntime::finishMarkingValidation() stub GCRuntime::pushZealSelectedObjects() stub bool useZeal? GCRuntime::runDebugGC() stub XPConnect: nsXPCComponents_Utils::SetGCZeal() stub (always NS_OK)
This commit is contained in:
parent
97a0673483
commit
b5de790f2a
20 changed files with 4 additions and 832 deletions
|
|
@ -323,10 +323,6 @@ static bool enableNativeRegExp = false;
|
|||
static bool enableUnboxedArrays = false;
|
||||
static bool enableSharedMemory = SHARED_MEMORY_DEFAULT;
|
||||
static bool enableWasmAlwaysBaseline = false;
|
||||
#ifdef JS_GC_ZEAL
|
||||
static uint32_t gZealBits = 0;
|
||||
static uint32_t gZealFrequency = 0;
|
||||
#endif
|
||||
static bool printTiming = false;
|
||||
static const char* jsCacheDir = nullptr;
|
||||
static const char* jsCacheAsmJSPath = nullptr;
|
||||
|
|
@ -7517,16 +7513,6 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
|
|||
dumpEntrainedVariables = op.getBoolOption("dump-entrained-variables");
|
||||
#endif
|
||||
|
||||
#ifdef JS_GC_ZEAL
|
||||
const char* zealStr = op.getStringOption("gc-zeal");
|
||||
if (zealStr) {
|
||||
if (!cx->gc.parseAndSetZeal(zealStr))
|
||||
return false;
|
||||
uint32_t nextScheduled;
|
||||
cx->gc.getZealBits(&gZealBits, &gZealFrequency, &nextScheduled);
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -7544,16 +7530,6 @@ SetWorkerContextOptions(JSContext* cx)
|
|||
cx->setOffthreadIonCompilationEnabled(offthreadCompilation);
|
||||
cx->profilingScripts = enableCodeCoverage || enableDisassemblyDumps;
|
||||
|
||||
#ifdef JS_GC_ZEAL
|
||||
if (gZealBits && gZealFrequency) {
|
||||
#define ZEAL_MODE(_, value) \
|
||||
if (gZealBits & (1 << value)) \
|
||||
cx->gc.setZeal(value, gZealFrequency);
|
||||
JS_FOR_EACH_ZEAL_MODE(ZEAL_MODE)
|
||||
#undef ZEAL_MODE
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_SetNativeStackQuota(cx, gMaxStackSize);
|
||||
}
|
||||
|
||||
|
|
@ -7838,9 +7814,6 @@ main(int argc, char** argv, char** envp)
|
|||
"NUMBER of instructions.", -1)
|
||||
#endif
|
||||
|| !op.addIntOption('\0', "nursery-size", "SIZE-MB", "Set the maximum nursery size in MB", 16)
|
||||
#ifdef JS_GC_ZEAL
|
||||
|| !op.addStringOption('z', "gc-zeal", "LEVEL(;LEVEL)*[,N]", gc::ZealModeHelpText)
|
||||
#endif
|
||||
|| !op.addStringOption('\0', "module-load-path", "DIR", "Set directory to load modules from")
|
||||
)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue