Android utilize V8 without WebView

后端 未结 5 855
甜味超标
甜味超标 2020-12-12 13:55

I\'m exercising executing javascript from Java. Rhino works very well for this on desktop, but has to fall back to (slow) interpreted mode on Android (due to dalvik being u

5条回答
  •  再見小時候
    2020-12-12 14:22

    You can use the AndroidJSCore project. It is not based on V8, but JavaScriptCore. The current version (2.2+) supports JIT compilation on all processors not named MIPS.

    UPDATE 2018: AndroidJSCore has been superseded by LiquidCore, which is, in fact, based on V8. Not only does it include the V8 engine, but all of Node.js is available as well.

提交回复
热议问题