[turbofan] Fix pushing of JSToBooleans into Phis.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 17 Nov 2014 12:10:28 +0000 (13:10 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 17 Nov 2014 12:10:55 +0000 (12:10 +0000)
commit2eaca10e9bdc18cb1127db05613313109a374d0e
tree1e6c70b3765f952e8b331a1fe75c364757698fa3
parentca268fe2a265a351d7195eaf218b3b5217ecfdae
[turbofan] Fix pushing of JSToBooleans into Phis.

Now we actually implement it the way it is meant to be, that is:

  JSToBoolean(Phi(x1,...,xn):primitive)
    => Phi(JSToBoolean(x1),...,JSToBoolean(xn)):boolean

This also fixes the endless recursion within JSTypedLowering when
the GraphReducer does all possible reductions instead of using the
generic algorithm.

R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/730043002

Cr-Commit-Position: refs/heads/master@{#25376}
src/compiler/js-typed-lowering.cc
src/compiler/js-typed-lowering.h