| 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 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2578 // Returns the number of elements in the dictionary filtering out properties | 2578 // Returns the number of elements in the dictionary filtering out properties |
| 2579 // with the specified attributes. | 2579 // with the specified attributes. |
| 2580 int NumberOfElementsFilterAttributes(PropertyAttributes filter); | 2580 int NumberOfElementsFilterAttributes(PropertyAttributes filter); |
| 2581 | 2581 |
| 2582 // Returns the number of enumerable elements in the dictionary. | 2582 // Returns the number of enumerable elements in the dictionary. |
| 2583 int NumberOfEnumElements(); | 2583 int NumberOfEnumElements(); |
| 2584 | 2584 |
| 2585 // Copies keys to preallocated fixed array. | 2585 // Copies keys to preallocated fixed array. |
| 2586 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); | 2586 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); |
| 2587 // Fill in details for properties into storage. | 2587 // Fill in details for properties into storage. |
| 2588 void CopyKeysTo(FixedArray* storage); | 2588 void CopyKeysTo(FixedArray* storage, int index); |
| 2589 | 2589 |
| 2590 // Accessors for next enumeration index. | 2590 // Accessors for next enumeration index. |
| 2591 void SetNextEnumerationIndex(int index) { | 2591 void SetNextEnumerationIndex(int index) { |
| 2592 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); | 2592 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); |
| 2593 } | 2593 } |
| 2594 | 2594 |
| 2595 int NextEnumerationIndex() { | 2595 int NextEnumerationIndex() { |
| 2596 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); | 2596 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); |
| 2597 } | 2597 } |
| 2598 | 2598 |
| (...skipping 4266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6865 } else { | 6865 } else { |
| 6866 value &= ~(1 << bit_position); | 6866 value &= ~(1 << bit_position); |
| 6867 } | 6867 } |
| 6868 return value; | 6868 return value; |
| 6869 } | 6869 } |
| 6870 }; | 6870 }; |
| 6871 | 6871 |
| 6872 } } // namespace v8::internal | 6872 } } // namespace v8::internal |
| 6873 | 6873 |
| 6874 #endif // V8_OBJECTS_H_ | 6874 #endif // V8_OBJECTS_H_ |
| OLD | NEW |