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

Side by Side Diff: src/objects.h

Issue 2504403005: [stubs] KeyedStoreGeneric: inline dictionary property stores (Closed)
Patch Set: nits Created 4 years 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/ic/keyed-store-generic.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 3829 matching lines...) Expand 10 before | Expand all | Expand 10 after
3840 int* entry_out = nullptr); 3840 int* entry_out = nullptr);
3841 3841
3842 // Returns iteration indices array for the |dictionary|. 3842 // Returns iteration indices array for the |dictionary|.
3843 // Values are direct indices in the |HashTable| array. 3843 // Values are direct indices in the |HashTable| array.
3844 static Handle<FixedArray> BuildIterationIndicesArray( 3844 static Handle<FixedArray> BuildIterationIndicesArray(
3845 Handle<Derived> dictionary); 3845 Handle<Derived> dictionary);
3846 3846
3847 static const int kMaxNumberKeyIndex = DerivedHashTable::kPrefixStartIndex; 3847 static const int kMaxNumberKeyIndex = DerivedHashTable::kPrefixStartIndex;
3848 static const int kNextEnumerationIndexIndex = kMaxNumberKeyIndex + 1; 3848 static const int kNextEnumerationIndexIndex = kMaxNumberKeyIndex + 1;
3849 3849
3850 static const bool kIsEnumerable = Shape::kIsEnumerable;
3851
3850 protected: 3852 protected:
3851 // Generic at put operation. 3853 // Generic at put operation.
3852 MUST_USE_RESULT static Handle<Derived> AtPut( 3854 MUST_USE_RESULT static Handle<Derived> AtPut(
3853 Handle<Derived> dictionary, 3855 Handle<Derived> dictionary,
3854 Key key, 3856 Key key,
3855 Handle<Object> value); 3857 Handle<Object> value);
3856 // Add entry to dictionary. Returns entry value. 3858 // Add entry to dictionary. Returns entry value.
3857 static int AddEntry(Handle<Derived> dictionary, Key key, Handle<Object> value, 3859 static int AddEntry(Handle<Derived> dictionary, Key key, Handle<Object> value,
3858 PropertyDetails details, uint32_t hash); 3860 PropertyDetails details, uint32_t hash);
3859 // Generate new enumeration indices to avoid enumeration index overflow. 3861 // Generate new enumeration indices to avoid enumeration index overflow.
(...skipping 8002 matching lines...) Expand 10 before | Expand all | Expand 10 after
11862 } 11864 }
11863 return value; 11865 return value;
11864 } 11866 }
11865 }; 11867 };
11866 11868
11867 11869
11868 } // NOLINT, false-positive due to second-order macros. 11870 } // NOLINT, false-positive due to second-order macros.
11869 } // NOLINT, false-positive due to second-order macros. 11871 } // NOLINT, false-positive due to second-order macros.
11870 11872
11871 #endif // V8_OBJECTS_H_ 11873 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic/keyed-store-generic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698