Recognize special comparisons via pattern matching on the hydrogen graph, 2nd attempt.
This time, we initially leave the HTypeof instruction in the Hydrogen graph, even for the special cases. We later try to remove this instruction (and any HConstant) in the canonicalization pass, if possible. Always removing the HTypeof during the initial graph construction is wrong if e.g. it is used in an HSimulate. The removals can be generalized a bit, but this will happen in a separate CL. TEST=mjsunit/optimized-typeof.js Review URL: http://codereview.chromium.org/8334021 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9688 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Showing
Please
register
or
sign in
to comment