From e155a9c83ec8b8a50d1dd45d2be450f8e2dbd419 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 28 Mar 2018 15:28:28 -0400 Subject: jsauthority: re-enable JIT seems to work with mozjs52 Signed-off-by: Ray Strode https://bugs.freedesktop.org/show_bug.cgi?id=105865 --- src/polkitbackend/polkitbackendjsauthority.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index ef1a900..9746c47 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -457,13 +457,10 @@ polkit_backend_js_authority_constructed (GObject *object) if (!JS::InitSelfHostedCode (authority->priv->cx)) goto fail; - /* TODO: JIT'ing doesn't work will with killing runaway scripts... I think - * this is just a SpiderMonkey bug. So disable the JIT for now. - */ JS::ContextOptionsRef (authority->priv->cx) - .setIon (FALSE) - .setBaseline (FALSE) - .setAsmJS (FALSE); + .setIon (TRUE) + .setBaseline (TRUE) + .setAsmJS (TRUE); JS::SetWarningReporter(authority->priv->cx, report_error); JS_SetContextPrivate (authority->priv->cx, authority); -- cgit v1.2.1