There are a lot of boolean expressions and the profile shows time being spent in jsBoolean
Created attachment 17139 [details] patch
Created attachment 17157 [details] improved patch
Comment on attachment 17157 [details] improved patch My only comment would be that you might want to check if jsBoolean(true) and jsBoolean(false) compile down to a constant. Otherwise, r=me.
Committed revision 27664.