Patch forthcoming.
Created attachment 172873 [details] the patch
Landed in http://trac.webkit.org/changeset/133971
Re-opened since this is blocked by bug 101839
Wow, that was a silly mistake. I need to exclude strings from the boolean optimizations, since a string can be false (!!"" == false).
Created attachment 173471 [details] the patch
Created attachment 173473 [details] the patch
Comment on attachment 173473 [details] the patch r=me
Relanded in http://trac.webkit.org/changeset/134164