Add NativeWeakMap to v8.h
authoryurys <yurys@chromium.org>
Thu, 5 Feb 2015 09:40:13 +0000 (01:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Feb 2015 09:40:27 +0000 (09:40 +0000)
commita559367956d870de38375a51e919a2c06c004e26
treee4c4d6f5eca6073767449bfa0fc08bf24d0f4456
parentb7d27ea58307e9201c1196cf2cf523205cd8ab60
Add NativeWeakMap to v8.h

A new map wich references its keys weakly is added to v8.h. Internally it uses the same storage as JSWeakMap but doesn't depend on the JavaScript part of WeakMap implementation in weak-collection.js, hence it can be instantiated without entering any context.

BUG=chromium:437416
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#26451}
include/v8.h
src/api.cc
src/api.h
src/factory.cc
src/factory.h
src/runtime/runtime-collections.cc
src/runtime/runtime.h
test/cctest/test-api.cc
test/cctest/test-weakmaps.cc
test/cctest/test-weaksets.cc