Expose Map/Set methods through the API
authoradamk <adamk@chromium.org>
Tue, 23 Jun 2015 15:14:06 +0000 (08:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 15:14:17 +0000 (15:14 +0000)
commitdf472240285a93f25edac20100db2240fae5c7c6
tree19b5c4a8e54de8e275ca1fd08c1bb6be8777a30c
parentbcb276c6f7bf14418857f6db9296d50b711a6978
Expose Map/Set methods through the API

Map: get, set, has, delete, clear
Set: add, has, delete, clear

All except clear are implemented as calls into collection.js.

Note that some of these shadow methods of v8::Object. It's unclear
how confusing that's going to be: on the one hand, it seems likely
that most operations you would want to do on a Map or Set are these.
On the other, generic code could get confused if it somehow gets
ahold of a variable that happens to be C++-typed as a v8::Map or v8::Set.

BUG=v8:3340
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#29237}
include/v8.h
src/api.cc
src/bootstrapper.cc
src/collection.js
src/contexts.h
src/runtime/runtime-collections.cc
src/runtime/runtime.h
test/cctest/test-api.cc