We use GetScope with a scope count even in places where the base is known (put_to_base), and the scope count eliminates CSE opportunities for code that accesses variables at different scope depths. Also the code could just be simplified.
Created attachment 176907 [details] work in progress Still testing it.
Created attachment 176935 [details] the patch
Landed in http://trac.webkit.org/changeset/136276