This way the engine will run without JIT support. However, what to do with memory allocation functions like VirtualAlloc() that are only available on Windows? I mean to say, to run on embedded platforms, what alternate has to exist that may provide the facility of VirtualAlloc(). As far I have seen, the virtualAlloc() calls can be disabled even on Windows by setting HAVE_VIRTUAL_ALLOC to 0 in JSC/wtf/Platform.h. However, the garbage collection implementation uses this particular call inside JSC/runtime/Collector.cpp irrespective of HAVE_VIRTUAL_ALLOC being 0 or 1. Any suggestions on this front?<br>
<br>I have built Windows port with HAVE_VIRTUAL_ALLOC set to 0. But the VirtualAlloc() call inside JSC/runtime/Collector.cpp if replaced with fastMalloc() causes the WebKit to crash even on Windows.<br>
<br>Regards,<br>J R Shah <br><br><br><div class="gmail_quote">On Thu, Dec 25, 2008 at 2:22 AM, Maciej Stachowiak <span dir="ltr">&lt;<a href="mailto:mjs@apple.com" target="_blank">mjs@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><br><div><div><div>On Dec 24, 2008, at 1:52 PM, Javed Rabbani wrote:</div><br><blockquote type="cite">That means the current JS Engine (SquirrelFish Extreme) can be run on embedded/mobile platforms in bytecode mode without JIT. Correct me if I am wrong? If I am correct, then how to enable the engine&#39;s bytecode mode? There are number of ENABLE switches related to current JS engine... </blockquote>

<div><br></div></div><div>It should compile with JIT disabled on platforms that do not support the JIT.</div><div><br></div><font color="#888888"><div>&nbsp;- Maciej</div></font><div><br><blockquote type="cite">
<br> <br>Regards,<br>J R Shah<br><br><div class="gmail_quote">On Thu, Dec 25, 2008 at 12:49 AM, Maciej Stachowiak <span dir="ltr">&lt;<a href="mailto:mjs@apple.com" target="_blank">mjs@apple.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div><br> On Dec 24, 2008, at 6:46 AM, Holger Freyther wrote:<br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> On Wednesday 24 December 2008 14:00:19 Javed Rabbani wrote:<br>

 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I want to know whether WebKit JavaScript Engine SquirrelFish Extreme (SFX)<br> has been reported to work on any embedded, non-x86 platform?<br>

 </blockquote> <br> No, the extreme variant is only working on x86 and work on progress on the<br> amd64...<br> </blockquote> <br></div> To be more specific:<br> <br> 1) The JS engine should work on any CPU and on most reasonable operating systems in bytecode mode. It&#39;s still pretty fast as bytecode - nearly an order of magnitude faster than the old WebKit JS engine.<br>

 <br> 2) Currently the JIT only fully works on x86 and will soon also work on x86_64 (currently some basic tests pass but neither performance nor correctness are where we want them to be).<br> <br> 3) We are considering ports of the JIT to other CPU architectures. For mobile platforms, it&#39;s not entirely clear whether the JIT will turn out to be better than the bytecode interpreter - the memory cost might outweigh the speed benefit.<br>

 <br> Regards,<br><font color="#888888"> Maciej</font><div><div></div><div><br> <br> _______________________________________________<br> webkit-dev mailing list<br> <a href="mailto:webkit-dev@lists.webkit.org" target="_blank">webkit-dev@lists.webkit.org</a><br>

 <a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br> </div></div></blockquote></div><br></blockquote></div></div><br></div></blockquote>

</div><br>