Arrow functions: Cleanup handling of the prototype property
authorarv@chromium.org <arv@chromium.org>
Fri, 12 Sep 2014 15:07:43 +0000 (15:07 +0000)
committerarv@chromium.org <arv@chromium.org>
Fri, 12 Sep 2014 15:07:43 +0000 (15:07 +0000)
commit477b75f1cb2c21a55a8c96ccefbfb19ee1715336
treef3eb98081e4820ef76a100c5b88479e7fa35bd23
parentcfcad1d303ba32d087586b47e1027c87e9771977
Arrow functions: Cleanup handling of the prototype property

The old code did not work correctly in case of optimizations. I
found this out when implementing concise methods and we now plumb
through the function kind so we know what kind of Map to create for
the function.

BUG=v8:2700
LOG=y
R=rossberg@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23920 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/contexts.h
src/factory.cc
test/mjsunit/harmony/arrow-functions.js