| 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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2312 | 2312 |
| 2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name); | 2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name); |
| 2314 static void SetElementCallback(Handle<JSObject> object, | 2314 static void SetElementCallback(Handle<JSObject> object, |
| 2315 uint32_t index, | 2315 uint32_t index, |
| 2316 Handle<Object> structure, | 2316 Handle<Object> structure, |
| 2317 PropertyAttributes attributes); | 2317 PropertyAttributes attributes); |
| 2318 static void SetPropertyCallback(Handle<JSObject> object, | 2318 static void SetPropertyCallback(Handle<JSObject> object, |
| 2319 Handle<Name> name, | 2319 Handle<Name> name, |
| 2320 Handle<Object> structure, | 2320 Handle<Object> structure, |
| 2321 PropertyAttributes attributes); | 2321 PropertyAttributes attributes); |
| 2322 static void DefineElementAccessor(Handle<JSObject> object, | |
| 2323 uint32_t index, | |
| 2324 Handle<Object> getter, | |
| 2325 Handle<Object> setter, | |
| 2326 PropertyAttributes attributes); | |
| 2327 | 2322 |
| 2328 // Return the hash table backing store or the inline stored identity hash, | 2323 // Return the hash table backing store or the inline stored identity hash, |
| 2329 // whatever is found. | 2324 // whatever is found. |
| 2330 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); | 2325 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); |
| 2331 | 2326 |
| 2332 // Return the hash table backing store for hidden properties. If there is no | 2327 // Return the hash table backing store for hidden properties. If there is no |
| 2333 // backing store, allocate one. | 2328 // backing store, allocate one. |
| 2334 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( | 2329 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( |
| 2335 Handle<JSObject> object); | 2330 Handle<JSObject> object); |
| 2336 | 2331 |
| (...skipping 8471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10808 } else { | 10803 } else { |
| 10809 value &= ~(1 << bit_position); | 10804 value &= ~(1 << bit_position); |
| 10810 } | 10805 } |
| 10811 return value; | 10806 return value; |
| 10812 } | 10807 } |
| 10813 }; | 10808 }; |
| 10814 | 10809 |
| 10815 } } // namespace v8::internal | 10810 } } // namespace v8::internal |
| 10816 | 10811 |
| 10817 #endif // V8_OBJECTS_H_ | 10812 #endif // V8_OBJECTS_H_ |
| OLD | NEW |