phoboslab / JavaScriptCore-iOS

Apple's JavaScript Engine, with modified project files for iOS
695 stars 166 forks source link

iOS8 JIT support? #19

Closed pdobrev closed 10 years ago

pdobrev commented 10 years ago

Hi!

Now that the webkit shipped with iOS8 supports JIT, can we also use a JIT-enabled version of JavaScriptCore? Do you have an idea if updating jsc to latest will pass Apple review?

I assume another option could be getting a JSContext from WKWebView and working with that (it should be JIT-enabled).

aogilvie commented 10 years ago

+1 Also very interested in this.

Yes, the real question is will it pass the AppStore review? ^^ I can certainly assist in testing this as I have an Ejecta app that we can update the JSC in.

Currently working on adding JITs to Android compatible version of JavaScriptCore.

phoboslab commented 10 years ago

The built-in UIWebView runs in a separate process in iOS8 which is whitelisted to use the JIT.

Updating to the latest JSC version will still not allow us to use the JIT. Hijacking a JSContext from WKWebView could work, though.

pdobrev commented 10 years ago

Thanks @phoboslab!