OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |