PPC: [builtins] Simplify String constructor code.
authormbrandy <mbrandy@us.ibm.com>
Mon, 14 Sep 2015 23:16:35 +0000 (16:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 23:16:53 +0000 (23:16 +0000)
commit4ca74e4f80259fa4c669f6921171dd9e2b013748
tree33c8c15dd84b8c35d00327d35ac2c2c4e499e331
parentb6f673987f03667994b6918c89177f6a6c1c52c2
PPC: [builtins] Simplify String constructor code.

Port eadfd666318c1dd959d7fac7c27538ef478a8b72

Original commit message:
    The String constructor was somewhat complex with a lot of micro
    optimizations that are not relevant or even misguided. It would be
    really hard to port that code to ES6, which requires String to be
    subclassable. So as a first step we reduced the necessary complexity
    to the bare minimum (also removing the last user of the fairly complex
    MacroAssembler::LookupNumberStringCache method).

    This also removes the counters for the String constructor, which
    were not properly exposed anymore (and not kept in sync with inlined
    versions of the String constructor anyway).

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

Cr-Commit-Position: refs/heads/master@{#30722}
src/ppc/builtins-ppc.cc
src/ppc/macro-assembler-ppc.cc
src/ppc/macro-assembler-ppc.h