There’s an announcement on the Safari blog about SquirrelFish, their new JS interpreter. To sum it up:
SquirrelFish is a register-based, direct-threaded, high-level bytecode engine, with a sliding register window calling convention. It lazily generates bytecodes from a syntax tree, using a simple one-pass compiler with built-in copy propagation.
- I can imagine the â€œperformance per wattâ€? power consumption for SquirrelFish is also much lower. Good for my iPhoneâ€™s battery life.
Especially with the iPhone going 3G next week which will consume more power, making a web browser be as efficient as possible with CPU cycles not only makes the experience better, but will save battery life. This doesn’t just impact the iPhone as Google’s Android also includes WebKit.
David Mandelin has some analysis and comparison to the Mozilla work being done on his blog.
It’s pretty interesting stuff.