| 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 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2236 | 2236 |
| 2237 static void DefineAccessor(Handle<JSObject> object, | 2237 static void DefineAccessor(Handle<JSObject> object, |
| 2238 Handle<Name> name, | 2238 Handle<Name> name, |
| 2239 Handle<Object> getter, | 2239 Handle<Object> getter, |
| 2240 Handle<Object> setter, | 2240 Handle<Object> setter, |
| 2241 PropertyAttributes attributes, | 2241 PropertyAttributes attributes, |
| 2242 v8::AccessControl access_control = v8::DEFAULT); | 2242 v8::AccessControl access_control = v8::DEFAULT); |
| 2243 | 2243 |
| 2244 MaybeObject* LookupAccessor(Name* name, AccessorComponent component); | 2244 MaybeObject* LookupAccessor(Name* name, AccessorComponent component); |
| 2245 | 2245 |
| 2246 MUST_USE_RESULT MaybeObject* DefineAccessor(AccessorInfo* info); | 2246 static Handle<Object> SetAccessor(Handle<JSObject> object, |
| 2247 Handle<AccessorInfo> info); |
| 2247 | 2248 |
| 2248 // Used from Object::GetProperty(). | 2249 // Used from Object::GetProperty(). |
| 2249 MUST_USE_RESULT MaybeObject* GetPropertyWithFailedAccessCheck( | 2250 MUST_USE_RESULT MaybeObject* GetPropertyWithFailedAccessCheck( |
| 2250 Object* receiver, | 2251 Object* receiver, |
| 2251 LookupResult* result, | 2252 LookupResult* result, |
| 2252 Name* name, | 2253 Name* name, |
| 2253 PropertyAttributes* attributes); | 2254 PropertyAttributes* attributes); |
| 2254 MUST_USE_RESULT MaybeObject* GetPropertyWithInterceptor( | 2255 MUST_USE_RESULT MaybeObject* GetPropertyWithInterceptor( |
| 2255 Object* receiver, | 2256 Object* receiver, |
| 2256 Name* name, | 2257 Name* name, |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2778 static Handle<Object> DeleteNormalizedProperty(Handle<JSObject> object, | 2779 static Handle<Object> DeleteNormalizedProperty(Handle<JSObject> object, |
| 2779 Handle<Name> name, | 2780 Handle<Name> name, |
| 2780 DeleteMode mode); | 2781 DeleteMode mode); |
| 2781 | 2782 |
| 2782 static Handle<Object> DeleteElement(Handle<JSObject> object, | 2783 static Handle<Object> DeleteElement(Handle<JSObject> object, |
| 2783 uint32_t index, | 2784 uint32_t index, |
| 2784 DeleteMode mode); | 2785 DeleteMode mode); |
| 2785 static Handle<Object> DeleteElementWithInterceptor(Handle<JSObject> object, | 2786 static Handle<Object> DeleteElementWithInterceptor(Handle<JSObject> object, |
| 2786 uint32_t index); | 2787 uint32_t index); |
| 2787 | 2788 |
| 2788 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); | |
| 2789 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, | |
| 2790 DeleteMode mode); | |
| 2791 | |
| 2792 bool ReferencesObjectFromElements(FixedArray* elements, | 2789 bool ReferencesObjectFromElements(FixedArray* elements, |
| 2793 ElementsKind kind, | 2790 ElementsKind kind, |
| 2794 Object* object); | 2791 Object* object); |
| 2795 | 2792 |
| 2796 // Returns true if most of the elements backing storage is used. | 2793 // Returns true if most of the elements backing storage is used. |
| 2797 bool HasDenseElements(); | 2794 bool HasDenseElements(); |
| 2798 | 2795 |
| 2799 // Gets the current elements capacity and the number of used elements. | 2796 // Gets the current elements capacity and the number of used elements. |
| 2800 void GetElementsCapacityAndUsage(int* capacity, int* used); | 2797 void GetElementsCapacityAndUsage(int* capacity, int* used); |
| 2801 | 2798 |
| 2802 bool CanSetCallback(Name* name); | 2799 bool CanSetCallback(Name* name); |
| 2803 MUST_USE_RESULT MaybeObject* SetElementCallback( | 2800 static void SetElementCallback(Handle<JSObject> object, |
| 2804 uint32_t index, | 2801 uint32_t index, |
| 2805 Object* structure, | 2802 Handle<Object> structure, |
| 2806 PropertyAttributes attributes); | 2803 PropertyAttributes attributes); |
| 2807 MUST_USE_RESULT MaybeObject* SetPropertyCallback( | 2804 static void SetPropertyCallback(Handle<JSObject> object, |
| 2808 Name* name, | 2805 Handle<Name> name, |
| 2809 Object* structure, | 2806 Handle<Object> structure, |
| 2810 PropertyAttributes attributes); | 2807 PropertyAttributes attributes); |
| 2811 static void DefineElementAccessor(Handle<JSObject> object, | 2808 static void DefineElementAccessor(Handle<JSObject> object, |
| 2812 uint32_t index, | 2809 uint32_t index, |
| 2813 Handle<Object> getter, | 2810 Handle<Object> getter, |
| 2814 Handle<Object> setter, | 2811 Handle<Object> setter, |
| 2815 PropertyAttributes attributes, | 2812 PropertyAttributes attributes, |
| 2816 v8::AccessControl access_control); | 2813 v8::AccessControl access_control); |
| 2817 static Handle<AccessorPair> CreateAccessorPairFor(Handle<JSObject> object, | 2814 static Handle<AccessorPair> CreateAccessorPairFor(Handle<JSObject> object, |
| 2818 Handle<Name> name); | 2815 Handle<Name> name); |
| 2819 static void DefinePropertyAccessor(Handle<JSObject> object, | 2816 static void DefinePropertyAccessor(Handle<JSObject> object, |
| 2820 Handle<Name> name, | 2817 Handle<Name> name, |
| (...skipping 7411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10232 } else { | 10229 } else { |
| 10233 value &= ~(1 << bit_position); | 10230 value &= ~(1 << bit_position); |
| 10234 } | 10231 } |
| 10235 return value; | 10232 return value; |
| 10236 } | 10233 } |
| 10237 }; | 10234 }; |
| 10238 | 10235 |
| 10239 } } // namespace v8::internal | 10236 } } // namespace v8::internal |
| 10240 | 10237 |
| 10241 #endif // V8_OBJECTS_H_ | 10238 #endif // V8_OBJECTS_H_ |
| OLD | NEW |