| 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 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2303 Handle<Object> value, | 2303 Handle<Object> value, |
| 2304 PropertyAttributes attributes); | 2304 PropertyAttributes attributes); |
| 2305 | 2305 |
| 2306 MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyWithInterceptor( | 2306 MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyWithInterceptor( |
| 2307 LookupIterator* it); | 2307 LookupIterator* it); |
| 2308 | 2308 |
| 2309 bool ReferencesObjectFromElements(FixedArray* elements, | 2309 bool ReferencesObjectFromElements(FixedArray* elements, |
| 2310 ElementsKind kind, | 2310 ElementsKind kind, |
| 2311 Object* object); | 2311 Object* object); |
| 2312 | 2312 |
| 2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name); | |
| 2314 static void SetElementCallback(Handle<JSObject> object, | |
| 2315 uint32_t index, | |
| 2316 Handle<Object> structure, | |
| 2317 PropertyAttributes attributes); | |
| 2318 static void SetPropertyCallback(Handle<JSObject> object, | |
| 2319 Handle<Name> name, | |
| 2320 Handle<Object> structure, | |
| 2321 PropertyAttributes attributes); | |
| 2322 | |
| 2323 // Return the hash table backing store or the inline stored identity hash, | 2313 // Return the hash table backing store or the inline stored identity hash, |
| 2324 // whatever is found. | 2314 // whatever is found. |
| 2325 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); | 2315 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); |
| 2326 | 2316 |
| 2327 // Return the hash table backing store for hidden properties. If there is no | 2317 // Return the hash table backing store for hidden properties. If there is no |
| 2328 // backing store, allocate one. | 2318 // backing store, allocate one. |
| 2329 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( | 2319 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( |
| 2330 Handle<JSObject> object); | 2320 Handle<JSObject> object); |
| 2331 | 2321 |
| 2332 // Set the hidden property backing store to either a hash table or | 2322 // Set the hidden property backing store to either a hash table or |
| (...skipping 8470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10803 } else { | 10793 } else { |
| 10804 value &= ~(1 << bit_position); | 10794 value &= ~(1 << bit_position); |
| 10805 } | 10795 } |
| 10806 return value; | 10796 return value; |
| 10807 } | 10797 } |
| 10808 }; | 10798 }; |
| 10809 | 10799 |
| 10810 } } // namespace v8::internal | 10800 } } // namespace v8::internal |
| 10811 | 10801 |
| 10812 #endif // V8_OBJECTS_H_ | 10802 #endif // V8_OBJECTS_H_ |
| OLD | NEW |