| 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 5947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5958 // Maximal number of fast properties. Used to restrict the number of map | 5958 // Maximal number of fast properties. Used to restrict the number of map |
| 5959 // transitions to avoid an explosion in the number of maps for objects used as | 5959 // transitions to avoid an explosion in the number of maps for objects used as |
| 5960 // dictionaries. | 5960 // dictionaries. |
| 5961 inline bool TooManyFastProperties(StoreFromKeyed store_mode); | 5961 inline bool TooManyFastProperties(StoreFromKeyed store_mode); |
| 5962 static Handle<Map> TransitionToDataProperty(Handle<Map> map, | 5962 static Handle<Map> TransitionToDataProperty(Handle<Map> map, |
| 5963 Handle<Name> name, | 5963 Handle<Name> name, |
| 5964 Handle<Object> value, | 5964 Handle<Object> value, |
| 5965 PropertyAttributes attributes, | 5965 PropertyAttributes attributes, |
| 5966 StoreFromKeyed store_mode); | 5966 StoreFromKeyed store_mode); |
| 5967 static Handle<Map> TransitionToAccessorProperty( | 5967 static Handle<Map> TransitionToAccessorProperty( |
| 5968 Handle<Map> map, Handle<Name> name, int descriptor, | 5968 Isolate* isolate, Handle<Map> map, Handle<Name> name, int descriptor, |
| 5969 AccessorComponent component, Handle<Object> accessor, | 5969 Handle<Object> getter, Handle<Object> setter, |
| 5970 PropertyAttributes attributes); | 5970 PropertyAttributes attributes); |
| 5971 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map, | 5971 static Handle<Map> ReconfigureExistingProperty(Handle<Map> map, |
| 5972 int descriptor, | 5972 int descriptor, |
| 5973 PropertyKind kind, | 5973 PropertyKind kind, |
| 5974 PropertyAttributes attributes); | 5974 PropertyAttributes attributes); |
| 5975 | 5975 |
| 5976 inline void AppendDescriptor(Descriptor* desc); | 5976 inline void AppendDescriptor(Descriptor* desc); |
| 5977 | 5977 |
| 5978 // Returns a copy of the map, prepared for inserting into the transition | 5978 // Returns a copy of the map, prepared for inserting into the transition |
| 5979 // tree (if the |map| owns descriptors then the new one will share | 5979 // tree (if the |map| owns descriptors then the new one will share |
| (...skipping 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10769 } | 10769 } |
| 10770 return value; | 10770 return value; |
| 10771 } | 10771 } |
| 10772 }; | 10772 }; |
| 10773 | 10773 |
| 10774 | 10774 |
| 10775 } // NOLINT, false-positive due to second-order macros. | 10775 } // NOLINT, false-positive due to second-order macros. |
| 10776 } // NOLINT, false-positive due to second-order macros. | 10776 } // NOLINT, false-positive due to second-order macros. |
| 10777 | 10777 |
| 10778 #endif // V8_OBJECTS_H_ | 10778 #endif // V8_OBJECTS_H_ |
| OLD | NEW |