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 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2149 static bool UnregisterPrototypeUser(Handle<Map> user, Isolate* isolate); | 2149 static bool UnregisterPrototypeUser(Handle<Map> user, Isolate* isolate); |
2150 static void InvalidatePrototypeChains(Map* map); | 2150 static void InvalidatePrototypeChains(Map* map); |
2151 | 2151 |
2152 // Alternative implementation of WeakFixedArray::NullCallback. | 2152 // Alternative implementation of WeakFixedArray::NullCallback. |
2153 class PrototypeRegistryCompactionCallback { | 2153 class PrototypeRegistryCompactionCallback { |
2154 public: | 2154 public: |
2155 static void Callback(Object* value, int old_index, int new_index); | 2155 static void Callback(Object* value, int old_index, int new_index); |
2156 }; | 2156 }; |
2157 | 2157 |
2158 // Retrieve interceptors. | 2158 // Retrieve interceptors. |
2159 InterceptorInfo* GetNamedInterceptor(); | 2159 inline InterceptorInfo* GetNamedInterceptor(); |
Jakob Kummerow
2016/03/10 09:18:21
Ohhh the consistency! :-)
| |
2160 inline InterceptorInfo* GetIndexedInterceptor(); | 2160 inline InterceptorInfo* GetIndexedInterceptor(); |
2161 | 2161 |
2162 // Used from JSReceiver. | 2162 // Used from JSReceiver. |
2163 MUST_USE_RESULT static Maybe<PropertyAttributes> | 2163 MUST_USE_RESULT static Maybe<PropertyAttributes> |
2164 GetPropertyAttributesWithInterceptor(LookupIterator* it); | 2164 GetPropertyAttributesWithInterceptor(LookupIterator* it); |
2165 MUST_USE_RESULT static Maybe<PropertyAttributes> | 2165 MUST_USE_RESULT static Maybe<PropertyAttributes> |
2166 GetPropertyAttributesWithFailedAccessCheck(LookupIterator* it); | 2166 GetPropertyAttributesWithFailedAccessCheck(LookupIterator* it); |
2167 | 2167 |
2168 // Retrieves an AccessorPair property from the given object. Might return | 2168 // Retrieves an AccessorPair property from the given object. Might return |
2169 // undefined if the property doesn't exist or is of a different kind. | 2169 // undefined if the property doesn't exist or is of a different kind. |
(...skipping 3426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5596 inline void SetInObjectProperties(int value); | 5596 inline void SetInObjectProperties(int value); |
5597 // Index of the constructor function in the native context (primitives only), | 5597 // Index of the constructor function in the native context (primitives only), |
5598 // or the special sentinel value to indicate that there is no object wrapper | 5598 // or the special sentinel value to indicate that there is no object wrapper |
5599 // for the primitive (i.e. in case of null or undefined). | 5599 // for the primitive (i.e. in case of null or undefined). |
5600 static const int kNoConstructorFunctionIndex = 0; | 5600 static const int kNoConstructorFunctionIndex = 0; |
5601 inline int GetConstructorFunctionIndex(); | 5601 inline int GetConstructorFunctionIndex(); |
5602 inline void SetConstructorFunctionIndex(int value); | 5602 inline void SetConstructorFunctionIndex(int value); |
5603 static MaybeHandle<JSFunction> GetConstructorFunction( | 5603 static MaybeHandle<JSFunction> GetConstructorFunction( |
5604 Handle<Map> map, Handle<Context> native_context); | 5604 Handle<Map> map, Handle<Context> native_context); |
5605 | 5605 |
5606 // Retrieve interceptors. | |
5607 inline InterceptorInfo* GetNamedInterceptor(); | |
5608 inline InterceptorInfo* GetIndexedInterceptor(); | |
5609 | |
5606 // Instance type. | 5610 // Instance type. |
5607 inline InstanceType instance_type(); | 5611 inline InstanceType instance_type(); |
5608 inline void set_instance_type(InstanceType value); | 5612 inline void set_instance_type(InstanceType value); |
5609 | 5613 |
5610 // Tells how many unused property fields are available in the | 5614 // Tells how many unused property fields are available in the |
5611 // instance (only used for JSObject in fast mode). | 5615 // instance (only used for JSObject in fast mode). |
5612 inline int unused_property_fields(); | 5616 inline int unused_property_fields(); |
5613 inline void set_unused_property_fields(int value); | 5617 inline void set_unused_property_fields(int value); |
5614 | 5618 |
5615 // Bit field. | 5619 // Bit field. |
(...skipping 5266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10882 } | 10886 } |
10883 return value; | 10887 return value; |
10884 } | 10888 } |
10885 }; | 10889 }; |
10886 | 10890 |
10887 | 10891 |
10888 } // NOLINT, false-positive due to second-order macros. | 10892 } // NOLINT, false-positive due to second-order macros. |
10889 } // NOLINT, false-positive due to second-order macros. | 10893 } // NOLINT, false-positive due to second-order macros. |
10890 | 10894 |
10891 #endif // V8_OBJECTS_H_ | 10895 #endif // V8_OBJECTS_H_ |
OLD | NEW |