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 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 Object* GetHiddenProperty(Name* key); | 2413 Object* GetHiddenProperty(Name* key); |
2414 // Deletes a hidden property. Deleting a non-existing property is | 2414 // Deletes a hidden property. Deleting a non-existing property is |
2415 // considered successful. | 2415 // considered successful. |
2416 static void DeleteHiddenProperty(Handle<JSObject> object, | 2416 static void DeleteHiddenProperty(Handle<JSObject> object, |
2417 Handle<Name> key); | 2417 Handle<Name> key); |
2418 // Returns true if the object has a property with the hidden string as name. | 2418 // Returns true if the object has a property with the hidden string as name. |
2419 static bool HasHiddenProperties(Handle<JSObject> object); | 2419 static bool HasHiddenProperties(Handle<JSObject> object); |
2420 | 2420 |
2421 static void SetIdentityHash(Handle<JSObject> object, Handle<Smi> hash); | 2421 static void SetIdentityHash(Handle<JSObject> object, Handle<Smi> hash); |
2422 | 2422 |
2423 inline void ValidateElements(); | 2423 static inline void ValidateElements(Handle<JSObject> object); |
2424 | 2424 |
2425 // Makes sure that this object can contain HeapObject as elements. | 2425 // Makes sure that this object can contain HeapObject as elements. |
2426 static inline void EnsureCanContainHeapObjectElements(Handle<JSObject> obj); | 2426 static inline void EnsureCanContainHeapObjectElements(Handle<JSObject> obj); |
2427 | 2427 |
2428 // Makes sure that this object can contain the specified elements. | 2428 // Makes sure that this object can contain the specified elements. |
2429 static inline void EnsureCanContainElements( | 2429 static inline void EnsureCanContainElements( |
2430 Handle<JSObject> object, | 2430 Handle<JSObject> object, |
2431 Object** elements, | 2431 Object** elements, |
2432 uint32_t count, | 2432 uint32_t count, |
2433 EnsureElementsMode mode); | 2433 EnsureElementsMode mode); |
(...skipping 8392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10826 } else { | 10826 } else { |
10827 value &= ~(1 << bit_position); | 10827 value &= ~(1 << bit_position); |
10828 } | 10828 } |
10829 return value; | 10829 return value; |
10830 } | 10830 } |
10831 }; | 10831 }; |
10832 | 10832 |
10833 } } // namespace v8::internal | 10833 } } // namespace v8::internal |
10834 | 10834 |
10835 #endif // V8_OBJECTS_H_ | 10835 #endif // V8_OBJECTS_H_ |
OLD | NEW |