summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-28 15:28:28 -0400
committerRay Strode <rstrode@redhat.com>2018-03-28 16:47:00 -0400
commit85c38f3630687e3957e626f762861fb30897c6ec (patch)
treecf92cd88d21fad75be0062553be25b89f5c01cfb
parent7a3d3b867eaf741b0ad8ab45b106e845a57cd42a (diff)
downloadpolkit-85c38f3630687e3957e626f762861fb30897c6ec.tar.gz
jsauthority: re-enable JIT
seems to work with mozjs52
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index a680722..f8254d3 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -458,13 +458,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);