[crankshaft] Re-add fast-case for string add left/right.
authorbmeurer <bmeurer@chromium.org>
Tue, 15 Sep 2015 06:00:33 +0000 (23:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 06:00:49 +0000 (06:00 +0000)
commitd261849e53fbf8c36efae42d478271f87acff70f
treed9a98d0f915f9e109d71a7909d034727d264420b
parenta86db19e0a6ec9d428834813b138df67ba351edb
[crankshaft] Re-add fast-case for string add left/right.

Now the StringAddStub can optionally convert it's parameters to strings
(following the rules for the addition operator). This could be further
optimized once we have a ToPrimitiveStub, but it should be sufficient
for the moment.

Also removed the unused Strength parameter to the HStringAdd operator,
because string addition does not depend on language mode.

CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_win_nosnap_shared_rel,v8_linux_nosnap_dbg
R=mstarzinger@chromium.org
BUG=v8:4307
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30726}
src/code-stubs-hydrogen.cc
src/code-stubs.cc
src/code-stubs.h
src/hydrogen-instructions.cc
src/hydrogen-instructions.h
src/hydrogen.cc