Chromium Code Reviews| Index: src/objects.h |
| =================================================================== |
| --- src/objects.h (revision 1718) |
| +++ src/objects.h (working copy) |
| @@ -1585,11 +1585,14 @@ |
| bool IsEqualTo(FixedArray* other); |
| #endif |
| - // Swap two elements. |
| - void Swap(int i, int j); |
| + // Swap two elements in a pair of arrays. If this array and the |
| + // numbers array are equal, the elements are only swapped once. |
|
Kasper Lund
2009/04/16 11:22:04
equal -> identical (or the same object)
|
| + void SwapPairs(FixedArray* numbers, int i, int j); |
| - // Sort this array and the smis as pairs wrt. the smis. |
| - void SortPairs(FixedArray* smis); |
| + // Sort prefix of this array and the numbers array as pairs wrt. the |
| + // numbers. If the numbers array and the this array are equal, the |
|
Kasper Lund
2009/04/16 11:22:04
Again.
|
| + // prefix of this array is sorted. |
| + void SortPairs(FixedArray* numbers, uint32_t len); |
| protected: |
| // Set operation on FixedArray without using write barriers. |