Object.observe: use JSWeakMaps instead of raw ObjectHashTables in observation state
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 4 Feb 2013 20:24:11 +0000 (20:24 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 4 Feb 2013 20:24:11 +0000 (20:24 +0000)
commit6ab7a23f6c6511311d0536525c71ac15f64a2074
treeeffe8608daf191498e1e22324ae042e082971332
parent4bf6a992cffe8360eaa6ada892a54829745762ff
Object.observe: use JSWeakMaps instead of raw ObjectHashTables in observation state

object-observe.js uses weak maps to add "hidden" properties to
objects. Previously, the hash tables it was using weren't actually
weak. This patch changes the existing runtime functions to create
instances of JSWeakMap instead of exposing ObjectHashTable directly.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13591 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/object-observe.js
src/runtime.cc
src/runtime.h
test/cctest/test-object-observe.cc