| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 8826)
|
| +++ src/objects.cc (working copy)
|
| @@ -8449,7 +8449,7 @@
|
| }
|
| ASSERT(storage->length() >= index);
|
| } else {
|
| - property_dictionary()->CopyKeysTo(storage);
|
| + property_dictionary()->CopyKeysTo(storage, index);
|
| }
|
| }
|
|
|
| @@ -9099,7 +9099,7 @@
|
| int, JSObject::DeleteMode);
|
|
|
| template void Dictionary<StringDictionaryShape, String*>::CopyKeysTo(
|
| - FixedArray*);
|
| + FixedArray*, int);
|
|
|
| template int
|
| Dictionary<StringDictionaryShape, String*>::NumberOfElementsFilterAttributes(
|
| @@ -10184,11 +10184,12 @@
|
|
|
|
|
| template<typename Shape, typename Key>
|
| -void Dictionary<Shape, Key>::CopyKeysTo(FixedArray* storage) {
|
| +void Dictionary<Shape, Key>::CopyKeysTo(
|
| + FixedArray* storage,
|
| + int index) {
|
| ASSERT(storage->length() >= NumberOfElementsFilterAttributes(
|
| static_cast<PropertyAttributes>(NONE)));
|
| int capacity = HashTable<Shape, Key>::Capacity();
|
| - int index = 0;
|
| for (int i = 0; i < capacity; i++) {
|
| Object* k = HashTable<Shape, Key>::KeyAt(i);
|
| if (HashTable<Shape, Key>::IsKey(k)) {
|
|
|