Reviewers: danno,
Message:
PTAL.
Description:
Make order of addition the primary order of descriptor arrays.
The order by name is maintained as secondary order by using unused bits in
the
property details.
This is preliminary work towards sharing descriptors arrays.
The change allows us
- to get rid of the LastAdded bits in the map, binding it to the number of
valid
descriptors for the given map
- to avoid resorting by enumeration index to create the cache
- (maybe in the future, depending on performance) to get rid of the
enumeration
cache altogether.
Although generally the number_of_descriptors equals the
NumberOfOwnDescriptors
in the current version, this is preliminary work towards sharing
descriptors,
where maps may have more descriptors than are valid for the map.
Please review this at https://chromiumcodereview.appspot.com/10879013/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/bootstrapper.cc
M src/handles.cc
M src/heap.cc
M src/objects-debug.cc
M src/objects-inl.h
M src/objects.h
M src/objects.cc
M src/property-details.h
M src/property.h
M src/property.cc
M src/runtime.cc
M src/transitions-inl.h
M src/transitions.h
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev