| 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 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2738 inline bool HasEnumIndicesCache(); | 2738 inline bool HasEnumIndicesCache(); |
| 2739 | 2739 |
| 2740 inline FixedArray* GetEnumIndicesCache(); | 2740 inline FixedArray* GetEnumIndicesCache(); |
| 2741 | 2741 |
| 2742 inline Object** GetEnumCacheSlot(); | 2742 inline Object** GetEnumCacheSlot(); |
| 2743 | 2743 |
| 2744 void ClearEnumCache(); | 2744 void ClearEnumCache(); |
| 2745 | 2745 |
| 2746 // Initialize or change the enum cache, | 2746 // Initialize or change the enum cache, |
| 2747 // using the supplied storage for the small "bridge". | 2747 // using the supplied storage for the small "bridge". |
| 2748 void SetEnumCache(Isolate* isolate, Handle<FixedArray> new_cache, | 2748 void SetEnumCache(FixedArray* bridge_storage, |
| 2749 Handle<FixedArray> new_index_cache); | 2749 FixedArray* new_cache, |
| 2750 Object* new_index_cache); |
| 2750 | 2751 |
| 2751 bool CanHoldValue(int descriptor, Object* value); | 2752 bool CanHoldValue(int descriptor, Object* value); |
| 2752 | 2753 |
| 2753 // Accessors for fetching instance descriptor at descriptor number. | 2754 // Accessors for fetching instance descriptor at descriptor number. |
| 2754 inline Name* GetKey(int descriptor_number); | 2755 inline Name* GetKey(int descriptor_number); |
| 2755 inline Object** GetKeySlot(int descriptor_number); | 2756 inline Object** GetKeySlot(int descriptor_number); |
| 2756 inline Object* GetValue(int descriptor_number); | 2757 inline Object* GetValue(int descriptor_number); |
| 2757 inline void SetValue(int descriptor_number, Object* value); | 2758 inline void SetValue(int descriptor_number, Object* value); |
| 2758 inline Object** GetValueSlot(int descriptor_number); | 2759 inline Object** GetValueSlot(int descriptor_number); |
| 2759 static inline int GetValueOffset(int descriptor_number); | 2760 static inline int GetValueOffset(int descriptor_number); |
| (...skipping 7811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10571 | 10572 |
| 10572 Isolate* isolate_; | 10573 Isolate* isolate_; |
| 10573 Handle<FixedArray> keys_; | 10574 Handle<FixedArray> keys_; |
| 10574 Handle<OrderedHashSet> set_; | 10575 Handle<OrderedHashSet> set_; |
| 10575 int length_; | 10576 int length_; |
| 10576 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10577 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10577 }; | 10578 }; |
| 10578 } } // namespace v8::internal | 10579 } } // namespace v8::internal |
| 10579 | 10580 |
| 10580 #endif // V8_OBJECTS_H_ | 10581 #endif // V8_OBJECTS_H_ |
| OLD | NEW |