Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index db3c4498a3b92072250b5243476ac7d0b4698d0a..583625ef75af15191f88e7d39d34b90271548de2 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1178,6 +1178,14 @@ class JSObject: public HeapObject { |
inline bool HasFastElements(); |
inline Dictionary* element_dictionary(); // Gets slow elements. |
+ // Collects elements starting at index 0. |
+ // Undefined values are placed after non-un defined values. |
+ // Returns the number of non-undefined values. |
+ Object* PrepareElementsForSort(uint32_t limit); |
+ // As PrepareElementsForSort, but only on objects where elements is |
+ // a dictionary, and it will stay a dictionary. |
+ Object* PrepareSlowElementsForSort(uint32_t limit); |
+ |
Object* SetProperty(String* key, |
Object* value, |
PropertyAttributes attributes); |
@@ -2005,7 +2013,6 @@ class Dictionary: public DictionaryBase { |
void RemoveNumberEntries(uint32_t from, uint32_t to); |
// Sorting support |
- Object* RemoveHoles(); |
void CopyValuesTo(FixedArray* elements); |
// Casting. |
@@ -3876,9 +3883,6 @@ class JSArray: public JSObject { |
// Set the content of the array to the content of storage. |
inline void SetContent(FixedArray* storage); |
- // Support for sorting |
- Object* RemoveHoles(); |
- |
// Casting. |
static inline JSArray* cast(Object* obj); |