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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 Handle<Name> key); | 1180 Handle<Name> key); |
1181 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1181 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
1182 Isolate* isolate, | 1182 Isolate* isolate, |
1183 Handle<Object> object, | 1183 Handle<Object> object, |
1184 const char* key); | 1184 const char* key); |
1185 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1185 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
1186 Handle<Object> object, | 1186 Handle<Object> object, |
1187 Handle<Name> key); | 1187 Handle<Name> key); |
1188 | 1188 |
1189 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithAccessor( | 1189 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithAccessor( |
1190 Handle<Object> receiver, | 1190 LookupIterator* it); |
1191 Handle<Name> name, | |
1192 Handle<JSObject> holder, | |
1193 Handle<Object> structure); | |
1194 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithAccessor( | 1191 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithAccessor( |
1195 Handle<Object> receiver, Handle<Name> name, Handle<Object> value, | 1192 Handle<Object> receiver, Handle<Name> name, Handle<Object> value, |
1196 Handle<JSObject> holder, Handle<Object> structure, | 1193 Handle<JSObject> holder, Handle<Object> structure, |
1197 LanguageMode language_mode); | 1194 LanguageMode language_mode); |
1198 | 1195 |
1199 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( | 1196 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( |
1200 Handle<Object> receiver, | 1197 Handle<Object> receiver, |
1201 Handle<JSReceiver> getter); | 1198 Handle<JSReceiver> getter); |
1202 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( | 1199 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( |
1203 Handle<Object> receiver, | 1200 Handle<Object> receiver, |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 Handle<Object> getter, | 1885 Handle<Object> getter, |
1889 Handle<Object> setter, | 1886 Handle<Object> setter, |
1890 PropertyAttributes attributes); | 1887 PropertyAttributes attributes); |
1891 | 1888 |
1892 // Defines an AccessorInfo property on the given object. | 1889 // Defines an AccessorInfo property on the given object. |
1893 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( | 1890 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( |
1894 Handle<JSObject> object, | 1891 Handle<JSObject> object, |
1895 Handle<AccessorInfo> info); | 1892 Handle<AccessorInfo> info); |
1896 | 1893 |
1897 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( | 1894 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( |
1898 Handle<JSObject> object, | 1895 LookupIterator* it); |
1899 Handle<Object> receiver, | |
1900 Handle<Name> name); | |
1901 | 1896 |
1902 // Accessors for hidden properties object. | 1897 // Accessors for hidden properties object. |
1903 // | 1898 // |
1904 // Hidden properties are not own properties of the object itself. | 1899 // Hidden properties are not own properties of the object itself. |
1905 // Instead they are stored in an auxiliary structure kept as an own | 1900 // Instead they are stored in an auxiliary structure kept as an own |
1906 // property with a special name Heap::hidden_string(). But if the | 1901 // property with a special name Heap::hidden_string(). But if the |
1907 // receiver is a JSGlobalProxy then the auxiliary object is a property | 1902 // receiver is a JSGlobalProxy then the auxiliary object is a property |
1908 // of its prototype, and if it's a detached proxy, then you can't have | 1903 // of its prototype, and if it's a detached proxy, then you can't have |
1909 // hidden properties. | 1904 // hidden properties. |
1910 | 1905 |
(...skipping 9242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11153 } else { | 11148 } else { |
11154 value &= ~(1 << bit_position); | 11149 value &= ~(1 << bit_position); |
11155 } | 11150 } |
11156 return value; | 11151 return value; |
11157 } | 11152 } |
11158 }; | 11153 }; |
11159 | 11154 |
11160 } } // namespace v8::internal | 11155 } } // namespace v8::internal |
11161 | 11156 |
11162 #endif // V8_OBJECTS_H_ | 11157 #endif // V8_OBJECTS_H_ |
OLD | NEW |