X87: [es6] Initial steps towards a correct implementation of IsCallable.
authorchunyang.dai <chunyang.dai@intel.com>
Mon, 7 Sep 2015 08:00:40 +0000 (01:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 7 Sep 2015 08:00:49 +0000 (08:00 +0000)
commit57d16cf417b7301e9d45417fcae81d00588f74ac
tree8185f52091c60736ea68c76ee4e35f86933b8337
parente5ee42fa05fdc30b75cd575366cbba292e94f022
X87: [es6] Initial steps towards a correct implementation of IsCallable.

port 8a378f46d52ce64578c71313ed76a67592fbf63c (r30552)

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.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#30609}
src/full-codegen/x87/full-codegen-x87.cc
src/x87/lithium-codegen-x87.cc