| 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 7346 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  10911     } else { |  10911     } else { | 
|  10912       value &= ~(1 << bit_position); |  10912       value &= ~(1 << bit_position); | 
|  10913     } |  10913     } | 
|  10914     return value; |  10914     return value; | 
|  10915   } |  10915   } | 
|  10916 }; |  10916 }; | 
|  10917  |  10917  | 
|  10918 } }  // namespace v8::internal |  10918 } }  // namespace v8::internal | 
|  10919  |  10919  | 
|  10920 #endif  // V8_OBJECTS_H_ |  10920 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW |