• sgjesse@chromium.org's avatar
    Avoid dictionary expansion during bootstrapping. · cffc0511
    sgjesse@chromium.org authored
    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.
    Review URL: http://codereview.chromium.org/160382
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2584 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    cffc0511
objects.cc 261 KB