diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-28 15:28:28 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:47:00 -0400 |
commit | 85c38f3630687e3957e626f762861fb30897c6ec (patch) | |
tree | cf92cd88d21fad75be0062553be25b89f5c01cfb | |
parent | 7a3d3b867eaf741b0ad8ab45b106e845a57cd42a (diff) | |
download | polkit-85c38f3630687e3957e626f762861fb30897c6ec.tar.gz |
jsauthority: re-enable JIT
seems to work with mozjs52
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 9 |
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); |