| 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 5896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5907 // Maximal number of fast properties. Used to restrict the number of map | 5907 // Maximal number of fast properties. Used to restrict the number of map |
| 5908 // transitions to avoid an explosion in the number of maps for objects used as | 5908 // transitions to avoid an explosion in the number of maps for objects used as |
| 5909 // dictionaries. | 5909 // dictionaries. |
| 5910 inline bool TooManyFastProperties(StoreFromKeyed store_mode); | 5910 inline bool TooManyFastProperties(StoreFromKeyed store_mode); |
| 5911 static Handle<Map> TransitionToDataProperty(Handle<Map> map, | 5911 static Handle<Map> TransitionToDataProperty(Handle<Map> map, |
| 5912 Handle<Name> name, | 5912 Handle<Name> name, |
| 5913 Handle<Object> value, | 5913 Handle<Object> value, |
| 5914 PropertyAttributes attributes, | 5914 PropertyAttributes attributes, |
| 5915 StoreFromKeyed store_mode); | 5915 StoreFromKeyed store_mode); |
| 5916 static Handle<Map> TransitionToAccessorProperty( | 5916 static Handle<Map> TransitionToAccessorProperty( |
| 5917 Handle<Map> map, Handle<Name> name, int descriptor, | 5917 Isolate* isolate, Handle<Map> map, Handle<Name> name, int descriptor, |
| 5918 AccessorComponent component, Handle<Object> accessor, | 5918 Handle<Object> getter, Handle<Object> setter, |
| 5919 PropertyAttributes attributes); | 5919 PropertyAttributes attributes); |
| 5920 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map, | 5920 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map, |
| 5921 int descriptor, | 5921 int descriptor, |
| 5922 PropertyKind kind, | 5922 PropertyKind kind, |
| 5923 PropertyAttributes attributes); | 5923 PropertyAttributes attributes); |
| 5924 | 5924 |
| 5925 inline void AppendDescriptor(Descriptor* desc); | 5925 inline void AppendDescriptor(Descriptor* desc); |
| 5926 | 5926 |
| 5927 // Returns a copy of the map, prepared for inserting into the transition | 5927 // Returns a copy of the map, prepared for inserting into the transition |
| 5928 // tree (if the |map| owns descriptors then the new one will share | 5928 // tree (if the |map| owns descriptors then the new one will share |
| (...skipping 4788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10717 } | 10717 } |
| 10718 return value; | 10718 return value; |
| 10719 } | 10719 } |
| 10720 }; | 10720 }; |
| 10721 | 10721 |
| 10722 | 10722 |
| 10723 } // NOLINT, false-positive due to second-order macros. | 10723 } // NOLINT, false-positive due to second-order macros. |
| 10724 } // NOLINT, false-positive due to second-order macros. | 10724 } // NOLINT, false-positive due to second-order macros. |
| 10725 | 10725 |
| 10726 #endif // V8_OBJECTS_H_ | 10726 #endif // V8_OBJECTS_H_ |
| OLD | NEW |