5 ms·
Hi, just for the record, V8 differs in one very important aspect from the JVM: it includes no interpreter. It directly compiles methods to native code before t
by sb 16y ago
Hi,
just for the record, V8 differs in one very important aspect from the JVM: it includes no interpreter. It directly compiles methods to native code before their first execution, whereas the JVM includes a highly optimized interpreter for the first couple of executions. This affects memory usage, too (a couple of things that come to mind are profiling, additional memory for de-optimization, etc.)
- bad_user 16y agoI have a hard time believing that V8 doesn't do profiling / de-optimizations ... as these are crucial parts for optimizing runtime dispatch or boxing/unboxing of primitives. I know that V8 doesn't do tracing compiling, but still, it should at least have inline caches.