In the V8 environment it should be possible to aggressively optimize the code in question with various command line options. Where is -O5?
The real problem is a lack of an open-standard for JavaScript bytecode. Being able to serve "pre-compiled" JavaScript would go a long way towards improving performance.