-
svenpanne@chromium.org authored
Previously, comparisons against null/undefined and comparisons of the result of typeof against a constant string were done syntactically. Now we do this via pattern matching on the hydrogen graph, which opens up more opportunities for better code generation, e.g. the following comparisons are now recognized to be special: var bar = typeof foo; var baz = "undefined"; if (bar == baz) ... var blah = undefined; if (hurz == blah) ... If we did this handling of special cases even later at lithium generation time, even more cases could be recognized, but this would involve bigger changes and this CL handles most common cases. Review URL: http://codereview.chromium.org/8242002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9612 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
baa29eba