Reviewers: Kasper Lund,

Description:
Avoid dictionary expansion during bootstrapping.

Allocate the code stubs dictionary and non monomorphic cache dictionary
with an initial size which avoids these dictionaries to be expanded
during bootstrapping. This gets rid of 9 dictionary expansions during
bootstrapping.

Preallocate the dictionary when normalizing an object to a size
sufficient for holding the number of properties which is expected to be
added to the object. This is used when ceating an object from an object
literal boilerplate where multiple properties are known to be added.
This gets rid of 10 dictionary expansions during bootstrapping.

There are now 3 dictionary expansions left during bootstrapping.

Please review this at http://codereview.chromium.org/160382

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/handles.h
   M     src/handles.cc
   M     src/heap.cc
   M     src/objects.h
   M     src/objects.cc
   M     src/runtime.cc



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to