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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 Handle<Name> key); | 1174 Handle<Name> key); |
1175 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1175 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
1176 Isolate* isolate, | 1176 Isolate* isolate, |
1177 Handle<Object> object, | 1177 Handle<Object> object, |
1178 const char* key); | 1178 const char* key); |
1179 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1179 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
1180 Handle<Object> object, | 1180 Handle<Object> object, |
1181 Handle<Name> key); | 1181 Handle<Name> key); |
1182 | 1182 |
1183 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithAccessor( | 1183 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithAccessor( |
1184 Handle<Object> receiver, | 1184 LookupIterator* it); |
1185 Handle<Name> name, | |
1186 Handle<JSObject> holder, | |
1187 Handle<Object> structure); | |
1188 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithAccessor( | 1185 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithAccessor( |
1189 Handle<Object> receiver, Handle<Name> name, Handle<Object> value, | 1186 Handle<Object> receiver, Handle<Name> name, Handle<Object> value, |
1190 Handle<JSObject> holder, Handle<Object> structure, | 1187 Handle<JSObject> holder, Handle<Object> structure, |
1191 LanguageMode language_mode); | 1188 LanguageMode language_mode); |
1192 | 1189 |
1193 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( | 1190 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( |
1194 Handle<Object> receiver, | 1191 Handle<Object> receiver, |
1195 Handle<JSReceiver> getter); | 1192 Handle<JSReceiver> getter); |
1196 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( | 1193 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( |
1197 Handle<Object> receiver, | 1194 Handle<Object> receiver, |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 Handle<Object> getter, | 1880 Handle<Object> getter, |
1884 Handle<Object> setter, | 1881 Handle<Object> setter, |
1885 PropertyAttributes attributes); | 1882 PropertyAttributes attributes); |
1886 | 1883 |
1887 // Defines an AccessorInfo property on the given object. | 1884 // Defines an AccessorInfo property on the given object. |
1888 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( | 1885 MUST_USE_RESULT static MaybeHandle<Object> SetAccessor( |
1889 Handle<JSObject> object, | 1886 Handle<JSObject> object, |
1890 Handle<AccessorInfo> info); | 1887 Handle<AccessorInfo> info); |
1891 | 1888 |
1892 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( | 1889 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( |
1893 Handle<JSObject> object, | 1890 LookupIterator* it); |
1894 Handle<Object> receiver, | |
1895 Handle<Name> name); | |
1896 | 1891 |
1897 // Accessors for hidden properties object. | 1892 // Accessors for hidden properties object. |
1898 // | 1893 // |
1899 // Hidden properties are not own properties of the object itself. | 1894 // Hidden properties are not own properties of the object itself. |
1900 // Instead they are stored in an auxiliary structure kept as an own | 1895 // Instead they are stored in an auxiliary structure kept as an own |
1901 // property with a special name Heap::hidden_string(). But if the | 1896 // property with a special name Heap::hidden_string(). But if the |
1902 // receiver is a JSGlobalProxy then the auxiliary object is a property | 1897 // receiver is a JSGlobalProxy then the auxiliary object is a property |
1903 // of its prototype, and if it's a detached proxy, then you can't have | 1898 // of its prototype, and if it's a detached proxy, then you can't have |
1904 // hidden properties. | 1899 // hidden properties. |
1905 | 1900 |
(...skipping 9225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11131 } else { | 11126 } else { |
11132 value &= ~(1 << bit_position); | 11127 value &= ~(1 << bit_position); |
11133 } | 11128 } |
11134 return value; | 11129 return value; |
11135 } | 11130 } |
11136 }; | 11131 }; |
11137 | 11132 |
11138 } } // namespace v8::internal | 11133 } } // namespace v8::internal |
11139 | 11134 |
11140 #endif // V8_OBJECTS_H_ | 11135 #endif // V8_OBJECTS_H_ |
OLD | NEW |