Map/Set: Implement constructor parameter handling
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 18:05:57 +0000 (18:05 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 18:05:57 +0000 (18:05 +0000)
commit257adcf0eda7520de6eab180917c16e27a984c3a
tree284eab51b0ec4b4be6d2811bd39a0e211426452e
parent6b264de751ca13b584eae40d9f689160ea215a40
Map/Set: Implement constructor parameter handling

When an iterable object is passed in as the argument to the Map and Set
constructor the elements of the iterable object are used to populate the
Map and Set.

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-iterable
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-set-iterable

BUG=v8:3398
LOG=Y
R=rossberg@chromium.org

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21950 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/collection.js
src/messages.js
test/mjsunit/harmony/collections.js
tools/generate-runtime-tests.py