Reviewers: jochen (slow), kozyatinskiy, aandrey,

Description:
Add WeakMap 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

Please review this at https://codereview.chromium.org/886473005/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+256, -35 lines):
  M include/v8.h
  M src/api.cc
  M src/factory.h
  M src/factory.cc
  M src/runtime/runtime.h
  M src/runtime/runtime-collections.cc
  M test/cctest/test-api.cc
  M test/cctest/test-weakmaps.cc
  M test/cctest/test-weaksets.cc


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to