Explicitly set expected number of properties for instances of builtin types.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Aug 2010 17:50:37 +0000 (17:50 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Aug 2010 17:50:37 +0000 (17:50 +0000)
commit9f65b1e32dda80646625557b4b6372120389dc67
treeba0867bdae1dadad496f6607e2c576029bfa24e4
parent4ad1b6d7f9bff26a898e7fa250601aa60b9257cd
Explicitly set expected number of properties for instances of builtin types.

We used to inherit an estimate on the expected number of properties in
%SetCode. It is not accurate and does not help for the types where
adding custom properties is rare (String, Date, etc.).

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

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