PPC: [es6] Initial steps towards a correct implementation of IsCallable.
authormbrandy <mbrandy@us.ibm.com>
Thu, 3 Sep 2015 18:44:40 +0000 (11:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 3 Sep 2015 18:44:48 +0000 (18:44 +0000)
commit6990fb1c19f6bd14895475d5081fccfc9ccfe750
tree94bfdb865a2dc3dc187460324c1a2fd8ae9dfbbf
parentfdbccd64f7054f8a3328311f036e4f59a1b52131
PPC: [es6] Initial steps towards a correct implementation of IsCallable.

Port 8a378f46d52ce64578c71313ed76a67592fbf63c

Original commit message:
    This turns the has_instance_call_handler bit on Map into an is_callable
    bit, that matches the spec definition of IsCallable (i.e. instances have
    [[Call]] internal methods).

    Also fix the typeof operator to properly say "function" for everything
    that is callable.

    Also remove the (unused) premature %_GetPrototype optimization from
    Crankshaft, which just complicated the Map bit swap.

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/1330613005

Cr-Commit-Position: refs/heads/master@{#30576}
src/full-codegen/ppc/full-codegen-ppc.cc
src/ppc/lithium-codegen-ppc.cc
src/ppc/macro-assembler-ppc.cc
src/ppc/macro-assembler-ppc.h