| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2263 int NumberOfOwnProperties(PropertyFilter filter = ALL_PROPERTIES); | 2263 int NumberOfOwnProperties(PropertyFilter filter = ALL_PROPERTIES); |
| 2264 // Fill in details for properties into storage starting at the specified | 2264 // Fill in details for properties into storage starting at the specified |
| 2265 // index. Returns the number of properties added. | 2265 // index. Returns the number of properties added. |
| 2266 int GetOwnPropertyNames(FixedArray* storage, int index, | 2266 int GetOwnPropertyNames(FixedArray* storage, int index, |
| 2267 PropertyFilter filter = ALL_PROPERTIES); | 2267 PropertyFilter filter = ALL_PROPERTIES); |
| 2268 void CollectOwnPropertyNames(KeyAccumulator* keys, | 2268 void CollectOwnPropertyNames(KeyAccumulator* keys, |
| 2269 PropertyFilter filter = ALL_PROPERTIES); | 2269 PropertyFilter filter = ALL_PROPERTIES); |
| 2270 | 2270 |
| 2271 // Returns the number of properties on this object filtering out properties | 2271 // Returns the number of properties on this object filtering out properties |
| 2272 // with the specified attributes (ignoring interceptors). | 2272 // with the specified attributes (ignoring interceptors). |
| 2273 // TODO(jkummerow): Deprecated, only used by Object.observe. |
| 2273 int NumberOfOwnElements(PropertyFilter filter); | 2274 int NumberOfOwnElements(PropertyFilter filter); |
| 2274 // Returns the number of enumerable elements (ignoring interceptors). | |
| 2275 int NumberOfEnumElements(); | |
| 2276 // Returns the number of elements on this object filtering out elements | 2275 // Returns the number of elements on this object filtering out elements |
| 2277 // with the specified attributes (ignoring interceptors). | 2276 // with the specified attributes (ignoring interceptors). |
| 2277 // TODO(jkummerow): Deprecated, only used by Object.observe. |
| 2278 int GetOwnElementKeys(FixedArray* storage, PropertyFilter filter); | 2278 int GetOwnElementKeys(FixedArray* storage, PropertyFilter filter); |
| 2279 |
| 2279 static void CollectOwnElementKeys(Handle<JSObject> object, | 2280 static void CollectOwnElementKeys(Handle<JSObject> object, |
| 2280 KeyAccumulator* keys, | 2281 KeyAccumulator* keys, |
| 2281 PropertyFilter filter); | 2282 PropertyFilter filter); |
| 2282 | 2283 |
| 2283 static Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 2284 static Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
| 2284 bool cache_result); | 2285 bool cache_result); |
| 2285 | 2286 |
| 2286 // Returns a new map with all transitions dropped from the object's current | 2287 // Returns a new map with all transitions dropped from the object's current |
| 2287 // map and the ElementsKind set. | 2288 // map and the ElementsKind set. |
| 2288 static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 2289 static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
| (...skipping 8394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10683 } | 10684 } |
| 10684 return value; | 10685 return value; |
| 10685 } | 10686 } |
| 10686 }; | 10687 }; |
| 10687 | 10688 |
| 10688 | 10689 |
| 10689 } // NOLINT, false-positive due to second-order macros. | 10690 } // NOLINT, false-positive due to second-order macros. |
| 10690 } // NOLINT, false-positive due to second-order macros. | 10691 } // NOLINT, false-positive due to second-order macros. |
| 10691 | 10692 |
| 10692 #endif // V8_OBJECTS_H_ | 10693 #endif // V8_OBJECTS_H_ |
| OLD | NEW |