Various cleanup/simplification in object-observe.js
authoradamk@chromium.org <adamk@chromium.org>
Wed, 29 Oct 2014 17:27:09 +0000 (17:27 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Wed, 29 Oct 2014 17:28:12 +0000 (17:28 +0000)
commit234ffb76f7789dd56f962586f5acb6f710ad67f8
treef5ac53477c9ed9f13d4b18af6082e58fc9bbe51b
parentdf312d90f0ca5846c9305dd0dd455bf28388011d
Various cleanup/simplification in object-observe.js

The biggest change is the removal of the map wrapper objects:
we now operate directly on the observation weak map, since there
are already Get/GetOrCreate/Set functions for each info map.
Various other small cleanups as well, including the deletion of
unnecessary forwarding functions and making use of standard macros.

This is a reland of r24972, retaining GetObservationStateJS() to
keep snapshotting working properly.

R=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#24990}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24990 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/object-observe.js