HNHacker News
TopNewBestAskShowJobs

verwaest

23 karma · joined February 3, 2020

V8 dev
submissionscomments
verwaest··on Maglev: Chrome’s New JIT Compiler
Actually this concern is exactly why we built Maglev: A very fast JIT that can generate decent enough code very early so it can help even if you're not running tight benchmarks. In fact, the JIT by itself isn't particularly good at the traditional benchmarks yet. It's just very fast, and the code is most often good enough for real browsing usecases.
verwaest··on V8 Sparkplug – A non-optimizing JavaScript compiler
I'm guessing that benchmark is so short-running that adding compile overhead doesn't result in code that manages to pay for the compile overhead. It's unlikely a huge problem on that short-running benchmark though. But fair to show the weak points as well as the strengths of Sparkplug.
verwaest··on Pointer Compression in V8
Also we'll probably lose some cache benefits from compression due to larger alignment.
verwaest··on Pointer Compression in V8
Decompression isn't the problem, compression is. Compression is just a mov. Now we need additional shifts.
verwaest··on Pointer Compression in V8
+1. In fact even the JavaScript heap isn't limited to 4gb, just the space that pointers can point to. For example, we allocate large typed arrays outside of the V8 heap.
verwaest··on Pointer Compression in V8
We're definitely interested in exploring this. Unfortunately it's likely a little slower than 4gb PC: Compression right now is basically a no-op, decompression simply being a single add instruction. And it'll fragment memory a little because of the alignment requirements. But surely worth it for where larger heaps are necessary.
verwaest··on Pointer Compression in V8
Sounds like a fun project in the context of a moving GC :)
verwaest··on Pointer Compression in V8
It does: pointers in the V8 heap all lie within the same 4gb region. But then again, Spectre also makes ASLR much less effective.