| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2754 | 2754 |
| 2755 // Returns the number of enumerable elements in the dictionary. | 2755 // Returns the number of enumerable elements in the dictionary. |
| 2756 int NumberOfEnumElements(); | 2756 int NumberOfEnumElements(); |
| 2757 | 2757 |
| 2758 enum SortMode { UNSORTED, SORTED }; | 2758 enum SortMode { UNSORTED, SORTED }; |
| 2759 // Copies keys to preallocated fixed array. | 2759 // Copies keys to preallocated fixed array. |
| 2760 void CopyKeysTo(FixedArray* storage, | 2760 void CopyKeysTo(FixedArray* storage, |
| 2761 PropertyAttributes filter, | 2761 PropertyAttributes filter, |
| 2762 SortMode sort_mode); | 2762 SortMode sort_mode); |
| 2763 // Fill in details for properties into storage. | 2763 // Fill in details for properties into storage. |
| 2764 void CopyKeysTo(FixedArray* storage, SortMode sort_mode); | 2764 void CopyKeysTo(FixedArray* storage, int index, SortMode sort_mode); |
| 2765 | 2765 |
| 2766 // Accessors for next enumeration index. | 2766 // Accessors for next enumeration index. |
| 2767 void SetNextEnumerationIndex(int index) { | 2767 void SetNextEnumerationIndex(int index) { |
| 2768 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); | 2768 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); |
| 2769 } | 2769 } |
| 2770 | 2770 |
| 2771 int NextEnumerationIndex() { | 2771 int NextEnumerationIndex() { |
| 2772 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); | 2772 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); |
| 2773 } | 2773 } |
| 2774 | 2774 |
| (...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7174 } else { | 7174 } else { |
| 7175 value &= ~(1 << bit_position); | 7175 value &= ~(1 << bit_position); |
| 7176 } | 7176 } |
| 7177 return value; | 7177 return value; |
| 7178 } | 7178 } |
| 7179 }; | 7179 }; |
| 7180 | 7180 |
| 7181 } } // namespace v8::internal | 7181 } } // namespace v8::internal |
| 7182 | 7182 |
| 7183 #endif // V8_OBJECTS_H_ | 7183 #endif // V8_OBJECTS_H_ |
| OLD | NEW |