ES6: Implement Object.setPrototypeOf
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Jan 2014 12:15:57 +0000 (12:15 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Jan 2014 12:15:57 +0000 (12:15 +0000)
commit33d7e64b510c8459188d9e60861deed08b961c21
tree1ee9755b12424a8a5e2e833796104546cad8bf09
parentb704d491760d448cb0a83e519d2ee3b01291c4de
ES6: Implement Object.setPrototypeOf

This reverts commit bdc89ae76c15f3ef2626f8849744500248aec3ba.

This is a revert of the revert with test/webkit updated as needed.

Original CL Description:

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof

This just exposes the internal %SetPrototype and adds all the required
type checks as specified.

BUG=v8:2675
LOG=Y
R=dslomov@chromium.org, rossberg@chromium.org

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

Patch from Erik Arvidsson <arv@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18739 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/macros.py
src/messages.js
src/string.js
src/v8natives.js
test/mjsunit/set-prototype-of.js [new file with mode: 0644]
test/webkit/Object-create-expected.txt
test/webkit/fast/js/Object-getOwnPropertyNames-expected.txt
test/webkit/fast/js/Object-getOwnPropertyNames.js