Reviewers: Toon Verwaest,
Description:
Object.observe: generate change records for named properties.
In more detail:
- Set observation bit for observed objects (and make NormalizedMapCache
respect
it).
- Mutation of observed objects is always delegated from ICs to runtime.
- Introduce JS runtime function for notifying generated changes.
- Invoke this function in the appropriate places (including some local
refactoring).
- Inclusion of oldValue field is not yet implemented, nor element
properties.
Also, shortened flag to --harmony-observation.
Object.observe: implement map bit and functions to access it.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/11347037/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/bootstrapper.cc
M src/contexts.h
M src/flag-definitions.h
M src/ic.cc
M src/object-observe.js
M src/objects-inl.h
M src/objects.h
M src/objects.cc
M src/runtime.h
M src/runtime.cc
M src/v8natives.js
M test/mjsunit/harmony/object-observe.js
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev