View this article at: http://dev.macnn.com/articles/08/06/03/webkit.squirrelfish
Tuesday, Jun 03, 2008 7:15pm
WebKit: new speedier JavaSc...
The WebKit development team on Tuesday unveiled a new JavaScript rendering engine called SquirrelFish for the open source browser, making the browser perform 1.6 times faster on the SunSpider benchmark. SquirrelFish is billed as a register-based, direct threaded, high-level bytecode engine with a sliding register window calling convention. The engine was designed around current theories and research progress performed by professors, and developers of the Lua programming language.

SquirrelFish compiles bytecodes from a syntax tree, using a one-pass compiler with built-in copy propagation. The development team claims the speed boost comes mainly from SquirrelFish's ability to ignore redundant nodes, but is also due to single direct memory reads, single indirect branching, and eliminating the syntax tree, allowing the interpreter to skip execution states between syntax tree nodes. The WebKit team admits that the system is in early stages of development, but they expect to have compile-time optimizations and optimizations to the virtual machine engine, before it is ready for mass scale deployment.