Improve fast to slow elements conversion:
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Jul 2011 13:56:21 +0000 (13:56 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Jul 2011 13:56:21 +0000 (13:56 +0000)
commit42a2b4ede7f461d86b332abe2a90ca75473d5a94
treebfcb1bb36b9c68cb6f34a18765ff75039a7871bf
parent6c58013b3656ca7e29aaf5fcf37bc2a7a42e1bb1
Improve fast to slow elements conversion:

o Use a more strict limit for old arrays.

o Initial capacity of a slow elements dictionary should be the number
  of used elements and not the old array capacity.

R=danno@chromium.org

Review URL: http://codereview.chromium.org/7464032

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8744 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects-inl.h
src/objects.cc
src/objects.h
src/runtime.cc