| 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 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 inline bool HasEnumIndicesCache(); | 2758 inline bool HasEnumIndicesCache(); |
| 2759 | 2759 |
| 2760 inline FixedArray* GetEnumIndicesCache(); | 2760 inline FixedArray* GetEnumIndicesCache(); |
| 2761 | 2761 |
| 2762 inline Object** GetEnumCacheSlot(); | 2762 inline Object** GetEnumCacheSlot(); |
| 2763 | 2763 |
| 2764 void ClearEnumCache(); | 2764 void ClearEnumCache(); |
| 2765 | 2765 |
| 2766 // Initialize or change the enum cache, | 2766 // Initialize or change the enum cache, |
| 2767 // using the supplied storage for the small "bridge". | 2767 // using the supplied storage for the small "bridge". |
| 2768 void SetEnumCache(FixedArray* bridge_storage, | 2768 static void SetEnumCache(Handle<DescriptorArray> descriptors, |
| 2769 FixedArray* new_cache, | 2769 Isolate* isolate, Handle<FixedArray> new_cache, |
| 2770 Object* new_index_cache); | 2770 Handle<FixedArray> new_index_cache); |
| 2771 | 2771 |
| 2772 bool CanHoldValue(int descriptor, Object* value); | 2772 bool CanHoldValue(int descriptor, Object* value); |
| 2773 | 2773 |
| 2774 // Accessors for fetching instance descriptor at descriptor number. | 2774 // Accessors for fetching instance descriptor at descriptor number. |
| 2775 inline Name* GetKey(int descriptor_number); | 2775 inline Name* GetKey(int descriptor_number); |
| 2776 inline Object** GetKeySlot(int descriptor_number); | 2776 inline Object** GetKeySlot(int descriptor_number); |
| 2777 inline Object* GetValue(int descriptor_number); | 2777 inline Object* GetValue(int descriptor_number); |
| 2778 inline void SetValue(int descriptor_number, Object* value); | 2778 inline void SetValue(int descriptor_number, Object* value); |
| 2779 inline Object** GetValueSlot(int descriptor_number); | 2779 inline Object** GetValueSlot(int descriptor_number); |
| 2780 static inline int GetValueOffset(int descriptor_number); | 2780 static inline int GetValueOffset(int descriptor_number); |
| (...skipping 7802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10583 | 10583 |
| 10584 Isolate* isolate_; | 10584 Isolate* isolate_; |
| 10585 Handle<FixedArray> keys_; | 10585 Handle<FixedArray> keys_; |
| 10586 Handle<OrderedHashSet> set_; | 10586 Handle<OrderedHashSet> set_; |
| 10587 int length_; | 10587 int length_; |
| 10588 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10588 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10589 }; | 10589 }; |
| 10590 } } // namespace v8::internal | 10590 } } // namespace v8::internal |
| 10591 | 10591 |
| 10592 #endif // V8_OBJECTS_H_ | 10592 #endif // V8_OBJECTS_H_ |
| OLD | NEW |