v8 without the JITC

8 views
Skip to first unread message

Sebastien Metrot

unread,
Nov 22, 2009, 8:19:09 PM11/22/09
to v8-u...@googlegroups.com
Hi,

I'm currently investigating using v8 as the embedded script engine in my framework (http://libnui.net) as the API is really great. I have built it successfully on MacOSX i386 and Win32/Win64 but it fails to build on for powerpc architecture are it is not supported by the JITC. I am wondering if there is a way to disable the JITC and build v8 as a pure bytecode oriented VM. It would permit me to support all the platforms where the JITC is either not possible or not supported (for example I understand that Apple rejects application that uses such technologies).

Thanks in advance,

Sébastien


Jens Alfke

unread,
Nov 22, 2009, 8:29:39 PM11/22/09
to v8-u...@googlegroups.com
On Nov 22, 2009, at 5:19 PM, Sebastien Metrot wrote:

I am wondering if there is a way to disable the JITC and build v8 as a pure bytecode oriented VM.

Nope — as the V8 documentation says, there is no interpreter at all. JS code only runs by being converted to native machine code first.

It would permit me to support all the platforms where the JITC is either not possible or not supported (for example I understand that Apple rejects application that uses such technologies).

That restriction is only for iPhone apps (not Mac OS) and is against running any sort of executable code (interpreted or not) downloaded from the Internet. There's no restriction about interpreters in an iPhone app, as long as the code being interpreted ships with the app.

—Jens
Reply all
Reply to author
Forward
0 new messages