[crankshaft] Re-add fast-case for string add left/right.
authorbmeurer <bmeurer@chromium.org>
Tue, 22 Sep 2015 05:46:36 +0000 (22:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 05:46:46 +0000 (05:46 +0000)
commit4542a2d4cc2866a8097d10f11768683bc5ccb224
tree23e69720617acf870dbb00928466ce164ba29ddf
parent1dfac69f1fb5ad8e2db2d5be591c094def55d451
[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.

R=jarin@chromium.org
BUG=v8:4307, chromium:532524
LOG=n

Committed: https://crrev.com/d261849e53fbf8c36efae42d478271f87acff70f
Cr-Commit-Position: refs/heads/master@{#30726}

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

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