[strong] Simplify (and sortof optimize) string addition for strong mode.
authorbmeurer <bmeurer@chromium.org>
Thu, 13 Aug 2015 07:05:07 +0000 (00:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Aug 2015 07:05:18 +0000 (07:05 +0000)
commit6a58370c7f85ddd72590eebcdc03f15425b8ed1f
tree17f316c20e173eb74f2a5eada2a4a36d1b73139b
parent3b18958be5ffed30dd3be19c2776e5bfd9fa488c
[strong] Simplify (and sortof optimize) string addition for strong mode.

In strong mode, whenever either operand to an addition is a string, both
must be strings, so we can just use a simple string map check instead of
the STRING_ADD_LEFT / STRING_ADD_RIGHT machinery, which tries to do sloppy
and strict mode conversions before giving up.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30146}
src/builtins.h
src/hydrogen.cc
src/runtime.js