[ic] Introduce BOOLEAN state for CompareIC.
authorbmeurer <bmeurer@chromium.org>
Tue, 22 Sep 2015 08:01:26 +0000 (01:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 08:01:36 +0000 (08:01 +0000)
commit10c5f2e85ef92b7ca002ef95e406d5dc4f0c410b
treebeb4f298acef1293d0737124b2531656805a1a4d
parent02a2580b1636149d0c296591004e28bcd5fb4656
[ic] Introduce BOOLEAN state for CompareIC.

Slow path for relational comparison of boolean primitive values
now goes through the runtime, which made the slow path even
slower than it already was. So in order to repair the regression,
we just track boolean feedback for comparisons and use that
to generate decent code in Crankshaft (not the best possible
code, but good enough for Crankshaft; TurboFan will be able
to do better on that).

R=jarin@chromium.org
BUG=chromium:534200
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30860}
12 files changed:
src/arm/code-stubs-arm.cc
src/arm64/code-stubs-arm64.cc
src/code-stubs.cc
src/code-stubs.h
src/hydrogen-instructions.h
src/hydrogen.cc
src/ia32/code-stubs-ia32.cc
src/ic/ic-state.cc
src/ic/ic-state.h
src/mips/code-stubs-mips.cc
src/mips64/code-stubs-mips64.cc
src/x64/code-stubs-x64.cc