summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-28 15:28:28 -0400
committerRay Strode <rstrode@redhat.com>2018-04-03 14:16:47 -0400
commite155a9c83ec8b8a50d1dd45d2be450f8e2dbd419 (patch)
treeed854dda18dce4bba5a3a047ec6a30c10b2ed5ce
parented23dac5a7a0e5f8f1701fb33be6dcd026a9f5df (diff)
downloadpolkit-e155a9c83ec8b8a50d1dd45d2be450f8e2dbd419.tar.gz
jsauthority: re-enable JIT
seems to work with mozjs52 Signed-off-by: Ray Strode <rstrode@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=105865
-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 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);