| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 INLINE(static type* cast(Object* object)); \ | 870 INLINE(static type* cast(Object* object)); \ |
| 871 INLINE(static const type* cast(const Object* object)); | 871 INLINE(static const type* cast(const Object* object)); |
| 872 | 872 |
| 873 | 873 |
| 874 class AccessorPair; | 874 class AccessorPair; |
| 875 class AllocationSite; | 875 class AllocationSite; |
| 876 class AllocationSiteCreationContext; | 876 class AllocationSiteCreationContext; |
| 877 class AllocationSiteUsageContext; | 877 class AllocationSiteUsageContext; |
| 878 class Cell; | 878 class Cell; |
| 879 class ConsString; | 879 class ConsString; |
| 880 class DictionaryElementsAccessor; | |
| 881 class ElementsAccessor; | 880 class ElementsAccessor; |
| 882 class FixedArrayBase; | 881 class FixedArrayBase; |
| 883 class FunctionLiteral; | 882 class FunctionLiteral; |
| 884 class GlobalObject; | 883 class GlobalObject; |
| 885 class JSBuiltinsObject; | 884 class JSBuiltinsObject; |
| 886 class LayoutDescriptor; | 885 class LayoutDescriptor; |
| 887 class LookupIterator; | 886 class LookupIterator; |
| 888 class ObjectHashTable; | 887 class ObjectHashTable; |
| 889 class ObjectVisitor; | 888 class ObjectVisitor; |
| 890 class PropertyCell; | 889 class PropertyCell; |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 Handle<Object> old_value); | 2289 Handle<Object> old_value); |
| 2291 | 2290 |
| 2292 // Gets the current elements capacity and the number of used elements. | 2291 // Gets the current elements capacity and the number of used elements. |
| 2293 void GetElementsCapacityAndUsage(int* capacity, int* used); | 2292 void GetElementsCapacityAndUsage(int* capacity, int* used); |
| 2294 | 2293 |
| 2295 // Deletes an existing named property in a normalized object. | 2294 // Deletes an existing named property in a normalized object. |
| 2296 static void DeleteNormalizedProperty(Handle<JSObject> object, | 2295 static void DeleteNormalizedProperty(Handle<JSObject> object, |
| 2297 Handle<Name> name, int entry); | 2296 Handle<Name> name, int entry); |
| 2298 | 2297 |
| 2299 private: | 2298 private: |
| 2300 friend class DictionaryElementsAccessor; | |
| 2301 friend class JSReceiver; | 2299 friend class JSReceiver; |
| 2302 friend class Object; | 2300 friend class Object; |
| 2303 | 2301 |
| 2304 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); | 2302 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); |
| 2305 static void MigrateFastToSlow(Handle<JSObject> object, | 2303 static void MigrateFastToSlow(Handle<JSObject> object, |
| 2306 Handle<Map> new_map, | 2304 Handle<Map> new_map, |
| 2307 int expected_additional_properties); | 2305 int expected_additional_properties); |
| 2308 | 2306 |
| 2309 // Used from Object::GetProperty(). | 2307 // Used from Object::GetProperty(). |
| 2310 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( | 2308 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( |
| (...skipping 8515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10826 } else { | 10824 } else { |
| 10827 value &= ~(1 << bit_position); | 10825 value &= ~(1 << bit_position); |
| 10828 } | 10826 } |
| 10829 return value; | 10827 return value; |
| 10830 } | 10828 } |
| 10831 }; | 10829 }; |
| 10832 | 10830 |
| 10833 } } // namespace v8::internal | 10831 } } // namespace v8::internal |
| 10834 | 10832 |
| 10835 #endif // V8_OBJECTS_H_ | 10833 #endif // V8_OBJECTS_H_ |
| OLD | NEW |