| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3544 } | 3544 } |
| 3545 | 3545 |
| 3546 // Returns the number of elements in the dictionary filtering out properties | 3546 // Returns the number of elements in the dictionary filtering out properties |
| 3547 // with the specified attributes. | 3547 // with the specified attributes. |
| 3548 int NumberOfElementsFilterAttributes(PropertyAttributes filter); | 3548 int NumberOfElementsFilterAttributes(PropertyAttributes filter); |
| 3549 | 3549 |
| 3550 // Returns the number of enumerable elements in the dictionary. | 3550 // Returns the number of enumerable elements in the dictionary. |
| 3551 int NumberOfEnumElements(); | 3551 int NumberOfEnumElements(); |
| 3552 | 3552 |
| 3553 // Returns true if the dictionary contains any elements that are non-writable, | 3553 // Returns true if the dictionary contains any elements that are non-writable, |
| 3554 // non-configurable, or have getters/setters. | 3554 // non-configurable, non-enumerable, or have getters/setters. |
| 3555 bool HasComplexElements(); | 3555 bool HasComplexElements(); |
| 3556 | 3556 |
| 3557 enum SortMode { UNSORTED, SORTED }; | 3557 enum SortMode { UNSORTED, SORTED }; |
| 3558 // Copies keys to preallocated fixed array. | 3558 // Copies keys to preallocated fixed array. |
| 3559 void CopyKeysTo(FixedArray* storage, | 3559 void CopyKeysTo(FixedArray* storage, |
| 3560 PropertyAttributes filter, | 3560 PropertyAttributes filter, |
| 3561 SortMode sort_mode); | 3561 SortMode sort_mode); |
| 3562 // Fill in details for properties into storage. | 3562 // Fill in details for properties into storage. |
| 3563 void CopyKeysTo(FixedArray* storage, | 3563 void CopyKeysTo(FixedArray* storage, |
| 3564 int index, | 3564 int index, |
| (...skipping 7340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10905 } else { | 10905 } else { |
| 10906 value &= ~(1 << bit_position); | 10906 value &= ~(1 << bit_position); |
| 10907 } | 10907 } |
| 10908 return value; | 10908 return value; |
| 10909 } | 10909 } |
| 10910 }; | 10910 }; |
| 10911 | 10911 |
| 10912 } } // namespace v8::internal | 10912 } } // namespace v8::internal |
| 10913 | 10913 |
| 10914 #endif // V8_OBJECTS_H_ | 10914 #endif // V8_OBJECTS_H_ |
| OLD | NEW |