Add optimised access to known properties on the global object.
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Sep 2008 09:23:35 +0000 (09:23 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Sep 2008 09:23:35 +0000 (09:23 +0000)
commit461a7fd8b368642808c8e6fc92e15bf26d6a48f6
tree4e0a2409e1bcd939bd077d54b115045da60d9811
parent9f8f1789339a920443d90b575458f79f8c89c6a6
Add optimised access to known properties on the global object.

Reviewed by Maciej Stachowiak

Improve cross scope access to the global object by emitting
code to access it directly rather than by walking the scope chain.

This is a 0.8% win in SunSpider and a 1.7% win in the v8 benchmarks.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@36317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/VM/CTI.cpp
JavaScriptCore/VM/CTI.h
JavaScriptCore/VM/CodeBlock.cpp
JavaScriptCore/VM/CodeGenerator.cpp
JavaScriptCore/VM/CodeGenerator.h
JavaScriptCore/VM/Machine.cpp
JavaScriptCore/VM/Opcode.h
JavaScriptCore/kjs/nodes.cpp