3 ms·
"Will a more static style JIT like Google's V8 be able to keep up?" V8 compiles everything to assembler and does not do JIT. V8 seems to beat TraceMonkey on bo
by amix 17y ago
"Will a more static style JIT like Google's V8 be able to keep up?"
V8 compiles everything to assembler and does not do JIT. V8 seems to beat TraceMonkey on both CPU and memory benchmarks ( http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=v8&lang2=tracemonkey http://shootout.alioth.debian.org/u64/benchmark.php?test=all... ), so I doubt their approach has "lost". They probably do this because most JavaScript programs are very small and it's relatively cheap to compile everything to assembler from the start. They do their optimizations on assembler level as well - instead of doing it at bytecode level as it's done in most other VMs. This is at least the information I gathered when I looked at V8 last time - it was a year ago, so things might have changed.
- iskander 17y agoJust because V8 doesn't have an IR doesn't mean it's not a JIT. V8 still has to generate assembly throughout the execution of a javascript program (to create new hidden classes, patch the inline cache, etc...). See: http://code.google.com/apis/v8/design.html http://code.google.com/apis/v8/design.html