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 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 // internal fields as well as the number of internal fields. | 2284 // internal fields as well as the number of internal fields. |
2285 static inline int GetHeaderSize(InstanceType instance_type); | 2285 static inline int GetHeaderSize(InstanceType instance_type); |
2286 inline int GetHeaderSize(); | 2286 inline int GetHeaderSize(); |
2287 | 2287 |
2288 static inline int GetInternalFieldCount(Map* map); | 2288 static inline int GetInternalFieldCount(Map* map); |
2289 inline int GetInternalFieldCount(); | 2289 inline int GetInternalFieldCount(); |
2290 inline int GetInternalFieldOffset(int index); | 2290 inline int GetInternalFieldOffset(int index); |
2291 inline Object* GetInternalField(int index); | 2291 inline Object* GetInternalField(int index); |
2292 inline void SetInternalField(int index, Object* value); | 2292 inline void SetInternalField(int index, Object* value); |
2293 inline void SetInternalField(int index, Smi* value); | 2293 inline void SetInternalField(int index, Smi* value); |
| 2294 bool WasConstructedFromApiFunction(); |
2294 | 2295 |
2295 void CollectOwnPropertyNames(KeyAccumulator* keys, | 2296 void CollectOwnPropertyNames(KeyAccumulator* keys, |
2296 PropertyFilter filter = ALL_PROPERTIES); | 2297 PropertyFilter filter = ALL_PROPERTIES); |
2297 | 2298 |
2298 // Returns the number of properties on this object filtering out properties | 2299 // Returns the number of properties on this object filtering out properties |
2299 // with the specified attributes (ignoring interceptors). | 2300 // with the specified attributes (ignoring interceptors). |
2300 // TODO(jkummerow): Deprecated, only used by Object.observe. | 2301 // TODO(jkummerow): Deprecated, only used by Object.observe. |
2301 int NumberOfOwnElements(PropertyFilter filter); | 2302 int NumberOfOwnElements(PropertyFilter filter); |
2302 // Returns the number of elements on this object filtering out elements | 2303 // Returns the number of elements on this object filtering out elements |
2303 // with the specified attributes (ignoring interceptors). | 2304 // with the specified attributes (ignoring interceptors). |
(...skipping 8613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10917 } | 10918 } |
10918 return value; | 10919 return value; |
10919 } | 10920 } |
10920 }; | 10921 }; |
10921 | 10922 |
10922 | 10923 |
10923 } // NOLINT, false-positive due to second-order macros. | 10924 } // NOLINT, false-positive due to second-order macros. |
10924 } // NOLINT, false-positive due to second-order macros. | 10925 } // NOLINT, false-positive due to second-order macros. |
10925 | 10926 |
10926 #endif // V8_OBJECTS_H_ | 10927 #endif // V8_OBJECTS_H_ |
OLD | NEW |