Has anyone tried porting Blink and V8 to Native Client?

177 views
Skip to first unread message

Cary Cherng

unread,
Jan 28, 2014, 7:41:12 AM1/28/14
to native-cli...@googlegroups.com
I'm curious, has anyone tried porting the core of Chrome, Blink and V8, to Native Client?

The intent being to run the entire website of normal html, css, and javascript inside Native Client. But allow extra parts to be added to the pexe through dynamic loading such as audio and video codecs that are unsupported by Chrome.

Andrey Khalyavin

unread,
Jan 28, 2014, 9:01:17 AM1/28/14
to native-cli...@googlegroups.com


On Tuesday, January 28, 2014 4:41:12 PM UTC+4, Cary Cherng wrote:
I'm curious, has anyone tried porting the core of Chrome, Blink and V8, to Native Client?
V8 JIT will not work since it generates non-nacl code. 

The intent being to run the entire website of normal html, css, and javascript inside Native Client. But allow extra parts to be added to the pexe through dynamic loading such as audio and video codecs that are unsupported by Chrome.
Dynamic loading doesn't work in PNaCl yet.

-- Andrey Khalyavin 

Brad Chen

unread,
Jan 28, 2014, 9:06:51 AM1/28/14
to Native Client Discuss
V8 has been ported to Native Client, although the port used an unsavory trick of having V8 generate ARM instructions and then use a portable ARM interpreter to avoid the need to port V8 code generators to NaCl. You should be able to observe this by checking out V8 source and following the standard build/test instructions using targets nacl_ia32 or nacl_x64.

We had tests running in the V8 bots for a little while but they were breaking too frequently so I expect they may have regressed.

Brad

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Johan Heinstedt

unread,
Mar 1, 2014, 11:30:39 PM3/1/14
to native-cli...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages