Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: src/objects.h

Issue 1363293002: JSObject::GetEnumProperty cleanup (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: handlifying method Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/field-index-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/field-index-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698