OLD | NEW |
---|---|
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1578 // Dispatched behavior. | 1578 // Dispatched behavior. |
1579 int FixedArraySize() { return SizeFor(length()); } | 1579 int FixedArraySize() { return SizeFor(length()); } |
1580 void FixedArrayIterateBody(ObjectVisitor* v); | 1580 void FixedArrayIterateBody(ObjectVisitor* v); |
1581 #ifdef DEBUG | 1581 #ifdef DEBUG |
1582 void FixedArrayPrint(); | 1582 void FixedArrayPrint(); |
1583 void FixedArrayVerify(); | 1583 void FixedArrayVerify(); |
1584 // Checks if two FixedArrays have identical contents. | 1584 // Checks if two FixedArrays have identical contents. |
1585 bool IsEqualTo(FixedArray* other); | 1585 bool IsEqualTo(FixedArray* other); |
1586 #endif | 1586 #endif |
1587 | 1587 |
1588 // Swap two elements. | 1588 // Swap two elements in a pair of arrays. If this array and the |
1589 void Swap(int i, int j); | 1589 // numbers array are equal, the elements are only swapped once. |
Kasper Lund
2009/04/16 11:22:04
equal -> identical (or the same object)
| |
1590 void SwapPairs(FixedArray* numbers, int i, int j); | |
1590 | 1591 |
1591 // Sort this array and the smis as pairs wrt. the smis. | 1592 // Sort prefix of this array and the numbers array as pairs wrt. the |
1592 void SortPairs(FixedArray* smis); | 1593 // numbers. If the numbers array and the this array are equal, the |
Kasper Lund
2009/04/16 11:22:04
Again.
| |
1594 // prefix of this array is sorted. | |
1595 void SortPairs(FixedArray* numbers, uint32_t len); | |
1593 | 1596 |
1594 protected: | 1597 protected: |
1595 // Set operation on FixedArray without using write barriers. | 1598 // Set operation on FixedArray without using write barriers. |
1596 static inline void fast_set(FixedArray* array, int index, Object* value); | 1599 static inline void fast_set(FixedArray* array, int index, Object* value); |
1597 | 1600 |
1598 private: | 1601 private: |
1599 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); | 1602 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); |
1600 }; | 1603 }; |
1601 | 1604 |
1602 | 1605 |
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4328 } else { | 4331 } else { |
4329 value &= ~(1 << bit_position); | 4332 value &= ~(1 << bit_position); |
4330 } | 4333 } |
4331 return value; | 4334 return value; |
4332 } | 4335 } |
4333 }; | 4336 }; |
4334 | 4337 |
4335 } } // namespace v8::internal | 4338 } } // namespace v8::internal |
4336 | 4339 |
4337 #endif // V8_OBJECTS_H_ | 4340 #endif // V8_OBJECTS_H_ |
OLD | NEW |