| 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 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1846 // Defines an AccessorInfo property on the given object. | 1846 // Defines an AccessorInfo property on the given object. |
| 1847 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( | 1847 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( |
| 1848 Handle<JSObject> object, | 1848 Handle<JSObject> object, |
| 1849 Handle<AccessorInfo> info); | 1849 Handle<AccessorInfo> info); |
| 1850 | 1850 |
| 1851 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( | 1851 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( |
| 1852 Handle<JSObject> object, | 1852 Handle<JSObject> object, |
| 1853 Handle<Object> receiver, | 1853 Handle<Object> receiver, |
| 1854 Handle<Name> name); | 1854 Handle<Name> name); |
| 1855 | 1855 |
| 1856 // Returns true if this is an instance of an api function and has | |
| 1857 // been modified since it was created. May give false positives. | |
| 1858 bool IsDirty(); | |
| 1859 | |
| 1860 // Accessors for hidden properties object. | 1856 // Accessors for hidden properties object. |
| 1861 // | 1857 // |
| 1862 // Hidden properties are not own properties of the object itself. | 1858 // Hidden properties are not own properties of the object itself. |
| 1863 // Instead they are stored in an auxiliary structure kept as an own | 1859 // Instead they are stored in an auxiliary structure kept as an own |
| 1864 // property with a special name Heap::hidden_string(). But if the | 1860 // property with a special name Heap::hidden_string(). But if the |
| 1865 // receiver is a JSGlobalProxy then the auxiliary object is a property | 1861 // receiver is a JSGlobalProxy then the auxiliary object is a property |
| 1866 // of its prototype, and if it's a detached proxy, then you can't have | 1862 // of its prototype, and if it's a detached proxy, then you can't have |
| 1867 // hidden properties. | 1863 // hidden properties. |
| 1868 | 1864 |
| 1869 // Sets a hidden property on this object. Returns this object if successful, | 1865 // Sets a hidden property on this object. Returns this object if successful, |
| (...skipping 9044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10914 } else { | 10910 } else { |
| 10915 value &= ~(1 << bit_position); | 10911 value &= ~(1 << bit_position); |
| 10916 } | 10912 } |
| 10917 return value; | 10913 return value; |
| 10918 } | 10914 } |
| 10919 }; | 10915 }; |
| 10920 | 10916 |
| 10921 } } // namespace v8::internal | 10917 } } // namespace v8::internal |
| 10922 | 10918 |
| 10923 #endif // V8_OBJECTS_H_ | 10919 #endif // V8_OBJECTS_H_ |
| OLD | NEW |