if (instance.debugEnabled() &&
instance.realm()->debuggerObservesAllExecution()) {
instance.debug().ensureEnterFrameTrapsState(cx, &instance, true);
}
{ if (!instances_.reserve(instances_.length() + 1)) { returnfalse;
}
auto runtimeInstances = cx->runtime()->wasmInstances.lock(); if (!runtimeInstances->reserve(runtimeInstances->length() + 1)) { returnfalse;
}
// To avoid implementing rollback, do not fail after mutations start.
InstanceComparator cmp(instance);
size_t index;
// The following section is not unsafe, but simulated OOM do not consider // the fact that these insert calls are guarded by the previous reserve // calls.
AutoEnterOOMUnsafeRegion oomUnsafe;
(void)oomUnsafe;
// Notify the debugger after wasmInstances is unlocked. if (!instance.codeMeta().isSelfHostedModule()) {
DebugAPI::onNewWasmInstance(cx, instanceObj);
} returntrue;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.