[turbofan] Correctify JSToBoolean lowering.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 5 Jan 2015 13:44:13 +0000 (14:44 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 5 Jan 2015 13:44:31 +0000 (13:44 +0000)
commit9def087efcd844342c35f42628bac4ead49cac81
tree3f06b8fb69e8fa2200ba1f8c7e1b09374cfe024a
parent17a180842e38ce96bb251e701f34c11ab97d3966
[turbofan] Correctify JSToBoolean lowering.

Introduce a new AnyToBoolean simplified operator to handle the later
lowering of boolean conversions. Previously we tried to hack that with
the generic JSToBoolean, having its context set to zero, but that lead
to various problems/bugs and did not handle all cases.

TEST=cctest,unittests
R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25958}
19 files changed:
src/compiler/js-typed-lowering.cc
src/compiler/js-typed-lowering.h
src/compiler/opcodes.h
src/compiler/pipeline.cc
src/compiler/simplified-lowering.cc
src/compiler/simplified-lowering.h
src/compiler/simplified-operator-reducer.cc
src/compiler/simplified-operator-reducer.h
src/compiler/simplified-operator.cc
src/compiler/simplified-operator.h
src/compiler/typer.cc
src/compiler/verifier.cc
test/cctest/compiler/test-js-typed-lowering.cc
test/cctest/compiler/test-simplified-lowering.cc
test/unittests/compiler/js-typed-lowering-unittest.cc
test/unittests/compiler/node-test-utils.cc
test/unittests/compiler/node-test-utils.h
test/unittests/compiler/simplified-operator-reducer-unittest.cc
test/unittests/compiler/simplified-operator-unittest.cc