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

Side by Side Diff: src/objects.h

Issue 1762273002: [LookupIterator] Avoid additional descriptor lookup in TransitionToAccessorProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/lookup.cc ('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 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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 5970 matching lines...) Expand 10 before | Expand all | Expand 10 after
5981 // Maximal number of fast properties. Used to restrict the number of map 5981 // Maximal number of fast properties. Used to restrict the number of map
5982 // transitions to avoid an explosion in the number of maps for objects used as 5982 // transitions to avoid an explosion in the number of maps for objects used as
5983 // dictionaries. 5983 // dictionaries.
5984 inline bool TooManyFastProperties(StoreFromKeyed store_mode); 5984 inline bool TooManyFastProperties(StoreFromKeyed store_mode);
5985 static Handle<Map> TransitionToDataProperty(Handle<Map> map, 5985 static Handle<Map> TransitionToDataProperty(Handle<Map> map,
5986 Handle<Name> name, 5986 Handle<Name> name,
5987 Handle<Object> value, 5987 Handle<Object> value,
5988 PropertyAttributes attributes, 5988 PropertyAttributes attributes,
5989 StoreFromKeyed store_mode); 5989 StoreFromKeyed store_mode);
5990 static Handle<Map> TransitionToAccessorProperty( 5990 static Handle<Map> TransitionToAccessorProperty(
5991 Handle<Map> map, Handle<Name> name, AccessorComponent component, 5991 Handle<Map> map, Handle<Name> name, int descriptor,
5992 Handle<Object> accessor, PropertyAttributes attributes); 5992 AccessorComponent component, Handle<Object> accessor,
5993 PropertyAttributes attributes);
5993 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map, 5994 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map,
5994 int descriptor, 5995 int descriptor,
5995 PropertyKind kind, 5996 PropertyKind kind,
5996 PropertyAttributes attributes); 5997 PropertyAttributes attributes);
5997 5998
5998 inline void AppendDescriptor(Descriptor* desc); 5999 inline void AppendDescriptor(Descriptor* desc);
5999 6000
6000 // Returns a copy of the map, prepared for inserting into the transition 6001 // Returns a copy of the map, prepared for inserting into the transition
6001 // tree (if the |map| owns descriptors then the new one will share 6002 // tree (if the |map| owns descriptors then the new one will share
6002 // descriptors with |map|). 6003 // descriptors with |map|).
(...skipping 4864 matching lines...) Expand 10 before | Expand all | Expand 10 after
10867 } 10868 }
10868 return value; 10869 return value;
10869 } 10870 }
10870 }; 10871 };
10871 10872
10872 10873
10873 } // NOLINT, false-positive due to second-order macros. 10874 } // NOLINT, false-positive due to second-order macros.
10874 } // NOLINT, false-positive due to second-order macros. 10875 } // NOLINT, false-positive due to second-order macros.
10875 10876
10876 #endif // V8_OBJECTS_H_ 10877 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698