OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2867 |
2868 // Add a property to a fast-case object. | 2868 // Add a property to a fast-case object. |
2869 static void AddFastProperty(Handle<JSObject> object, | 2869 static void AddFastProperty(Handle<JSObject> object, |
2870 Handle<Name> name, | 2870 Handle<Name> name, |
2871 Handle<Object> value, | 2871 Handle<Object> value, |
2872 PropertyAttributes attributes, | 2872 PropertyAttributes attributes, |
2873 StoreFromKeyed store_mode, | 2873 StoreFromKeyed store_mode, |
2874 ValueType value_type, | 2874 ValueType value_type, |
2875 TransitionFlag flag); | 2875 TransitionFlag flag); |
2876 | 2876 |
2877 // Add a property to a fast-case object using a map transition to | |
2878 // new_map. | |
2879 static void AddFastPropertyUsingMap(Handle<JSObject> object, | |
2880 Handle<Map> new_map, | |
2881 Handle<Name> name, | |
2882 Handle<Object> value, | |
2883 int field_index, | |
2884 Representation representation); | |
2885 | |
2886 // Add a property to a slow-case object. | 2877 // Add a property to a slow-case object. |
2887 static void AddSlowProperty(Handle<JSObject> object, | 2878 static void AddSlowProperty(Handle<JSObject> object, |
2888 Handle<Name> name, | 2879 Handle<Name> name, |
2889 Handle<Object> value, | 2880 Handle<Object> value, |
2890 PropertyAttributes attributes); | 2881 PropertyAttributes attributes); |
2891 | 2882 |
2892 static Handle<Object> DeleteProperty(Handle<JSObject> object, | 2883 static Handle<Object> DeleteProperty(Handle<JSObject> object, |
2893 Handle<Name> name, | 2884 Handle<Name> name, |
2894 DeleteMode mode); | 2885 DeleteMode mode); |
2895 static Handle<Object> DeletePropertyPostInterceptor(Handle<JSObject> object, | 2886 static Handle<Object> DeletePropertyPostInterceptor(Handle<JSObject> object, |
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5982 | 5973 |
5983 void DeprecateTransitionTree(); | 5974 void DeprecateTransitionTree(); |
5984 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); | 5975 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); |
5985 | 5976 |
5986 Map* FindRootMap(); | 5977 Map* FindRootMap(); |
5987 Map* FindUpdatedMap(int verbatim, int length, DescriptorArray* descriptors); | 5978 Map* FindUpdatedMap(int verbatim, int length, DescriptorArray* descriptors); |
5988 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); | 5979 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); |
5989 | 5980 |
5990 inline int GetInObjectPropertyOffset(int index); | 5981 inline int GetInObjectPropertyOffset(int index); |
5991 | 5982 |
5992 int NumberOfFields(); | 5983 int NumberOfFields(int limit = -1); |
5993 | 5984 |
5994 bool InstancesNeedRewriting(Map* target, | 5985 bool InstancesNeedRewriting(Map* target, |
5995 int target_number_of_fields, | 5986 int target_number_of_fields, |
5996 int target_inobject, | 5987 int target_inobject, |
5997 int target_unused); | 5988 int target_unused); |
5998 static Handle<Map> GeneralizeAllFieldRepresentations( | 5989 static Handle<Map> GeneralizeAllFieldRepresentations( |
5999 Handle<Map> map, | 5990 Handle<Map> map, |
6000 Representation new_representation); | 5991 Representation new_representation); |
6001 static Handle<Map> GeneralizeRepresentation( | 5992 static Handle<Map> GeneralizeRepresentation( |
6002 Handle<Map> map, | 5993 Handle<Map> map, |
(...skipping 4794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10797 } else { | 10788 } else { |
10798 value &= ~(1 << bit_position); | 10789 value &= ~(1 << bit_position); |
10799 } | 10790 } |
10800 return value; | 10791 return value; |
10801 } | 10792 } |
10802 }; | 10793 }; |
10803 | 10794 |
10804 } } // namespace v8::internal | 10795 } } // namespace v8::internal |
10805 | 10796 |
10806 #endif // V8_OBJECTS_H_ | 10797 #endif // V8_OBJECTS_H_ |
OLD | NEW |