| 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 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2547 // Returns the number of elements in the dictionary filtering out properties | 2547 // Returns the number of elements in the dictionary filtering out properties |
| 2548 // with the specified attributes. | 2548 // with the specified attributes. |
| 2549 int NumberOfElementsFilterAttributes(PropertyAttributes filter); | 2549 int NumberOfElementsFilterAttributes(PropertyAttributes filter); |
| 2550 | 2550 |
| 2551 // Returns the number of enumerable elements in the dictionary. | 2551 // Returns the number of enumerable elements in the dictionary. |
| 2552 int NumberOfEnumElements(); | 2552 int NumberOfEnumElements(); |
| 2553 | 2553 |
| 2554 // Copies keys to preallocated fixed array. | 2554 // Copies keys to preallocated fixed array. |
| 2555 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); | 2555 void CopyKeysTo(FixedArray* storage, PropertyAttributes filter); |
| 2556 // Fill in details for properties into storage. | 2556 // Fill in details for properties into storage. |
| 2557 void CopyKeysTo(FixedArray* storage); | 2557 void CopyKeysTo(FixedArray* storage, int index); |
| 2558 | 2558 |
| 2559 // Accessors for next enumeration index. | 2559 // Accessors for next enumeration index. |
| 2560 void SetNextEnumerationIndex(int index) { | 2560 void SetNextEnumerationIndex(int index) { |
| 2561 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); | 2561 this->fast_set(this, kNextEnumerationIndexIndex, Smi::FromInt(index)); |
| 2562 } | 2562 } |
| 2563 | 2563 |
| 2564 int NextEnumerationIndex() { | 2564 int NextEnumerationIndex() { |
| 2565 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); | 2565 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); |
| 2566 } | 2566 } |
| 2567 | 2567 |
| (...skipping 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6678 } else { | 6678 } else { |
| 6679 value &= ~(1 << bit_position); | 6679 value &= ~(1 << bit_position); |
| 6680 } | 6680 } |
| 6681 return value; | 6681 return value; |
| 6682 } | 6682 } |
| 6683 }; | 6683 }; |
| 6684 | 6684 |
| 6685 } } // namespace v8::internal | 6685 } } // namespace v8::internal |
| 6686 | 6686 |
| 6687 #endif // V8_OBJECTS_H_ | 6687 #endif // V8_OBJECTS_H_ |
| OLD | NEW |