Revision: 12431
Author: [email protected]
Date: Mon Sep 3 08:15:32 2012
Log: Do not generate new enumeration indices for global objects.
Review URL: https://chromiumcodereview.appspot.com/10911058
http://code.google.com/p/v8/source/detail?r=12431
Modified:
/branches/bleeding_edge/src/handles.cc
=======================================
--- /branches/bleeding_edge/src/handles.cc Mon Sep 3 06:27:17 2012
+++ /branches/bleeding_edge/src/handles.cc Mon Sep 3 08:15:32 2012
@@ -791,7 +791,7 @@
// number of holes to a minimum. This avoids allocating a large array
if
// many properties were added but subsequently deleted.
int next_enumeration = dictionary->NextEnumerationIndex();
- if (next_enumeration > (length * 3) / 2) {
+ if (!object->IsGlobalObject() && next_enumeration > (length * 3) / 2) {
StringDictionary::DoGenerateNewEnumerationIndices(dictionary);
next_enumeration = dictionary->NextEnumerationIndex();
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev