Reviewers: Kevin Millikin,

Description:
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

Please review this at http://codereview.chromium.org/8334021/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/hydrogen-instructions.h
  M     src/hydrogen-instructions.cc
  M     src/hydrogen.h
  M     src/hydrogen.cc
  A     test/mjsunit/optimized-typeof.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to