This optimization is giving me a 0.8% speed-up on SunSpider, although it does slow down bitwise-and because that is almost exclusively a test of unoptimized global variable access.
Created attachment 16992 [details] patch
Comment on attachment 16992 [details] patch r=me
Committed revision 27387.