| 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 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 Handle<Object> object, Handle<Name> key, Handle<Object> value, | 1116 Handle<Object> object, Handle<Name> key, Handle<Object> value, |
| 1117 StrictMode strict_mode, | 1117 StrictMode strict_mode, |
| 1118 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); | 1118 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); |
| 1119 | 1119 |
| 1120 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( | 1120 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( |
| 1121 LookupIterator* it, Handle<Object> value, StrictMode strict_mode, | 1121 LookupIterator* it, Handle<Object> value, StrictMode strict_mode, |
| 1122 StoreFromKeyed store_mode, | 1122 StoreFromKeyed store_mode, |
| 1123 StorePropertyMode data_store_mode = NORMAL_PROPERTY); | 1123 StorePropertyMode data_store_mode = NORMAL_PROPERTY); |
| 1124 MUST_USE_RESULT static MaybeHandle<Object> WriteToReadOnlyProperty( | 1124 MUST_USE_RESULT static MaybeHandle<Object> WriteToReadOnlyProperty( |
| 1125 LookupIterator* it, Handle<Object> value, StrictMode strict_mode); | 1125 LookupIterator* it, Handle<Object> value, StrictMode strict_mode); |
| 1126 MUST_USE_RESULT static MaybeHandle<Object> WriteToReadOnlyElement( |
| 1127 Isolate* isolate, Handle<Object> receiver, uint32_t index, |
| 1128 Handle<Object> value, StrictMode strict_mode); |
| 1126 static Handle<Object> SetDataProperty(LookupIterator* it, | 1129 static Handle<Object> SetDataProperty(LookupIterator* it, |
| 1127 Handle<Object> value); | 1130 Handle<Object> value); |
| 1128 MUST_USE_RESULT static MaybeHandle<Object> AddDataProperty( | 1131 MUST_USE_RESULT static MaybeHandle<Object> AddDataProperty( |
| 1129 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes, | 1132 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes, |
| 1130 StrictMode strict_mode, StoreFromKeyed store_mode); | 1133 StrictMode strict_mode, StoreFromKeyed store_mode); |
| 1131 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement( | 1134 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement( |
| 1132 Handle<Object> object, | 1135 Handle<Object> object, |
| 1133 Handle<Name> key); | 1136 Handle<Name> key); |
| 1134 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1137 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
| 1135 Isolate* isolate, | 1138 Isolate* isolate, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1161 Isolate* isolate, | 1164 Isolate* isolate, |
| 1162 Handle<Object> object, | 1165 Handle<Object> object, |
| 1163 uint32_t index); | 1166 uint32_t index); |
| 1164 | 1167 |
| 1165 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( | 1168 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( |
| 1166 Isolate* isolate, | 1169 Isolate* isolate, |
| 1167 Handle<Object> object, | 1170 Handle<Object> object, |
| 1168 Handle<Object> receiver, | 1171 Handle<Object> receiver, |
| 1169 uint32_t index); | 1172 uint32_t index); |
| 1170 | 1173 |
| 1174 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithReceiver( |
| 1175 Isolate* isolate, Handle<Object> object, Handle<Object> receiver, |
| 1176 uint32_t index, Handle<Object> value, StrictMode strict_mode); |
| 1177 |
| 1171 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( | 1178 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( |
| 1172 Isolate* isolate, Handle<Object> receiver); | 1179 Isolate* isolate, Handle<Object> receiver); |
| 1173 | 1180 |
| 1174 // Returns the permanent hash code associated with this object. May return | 1181 // Returns the permanent hash code associated with this object. May return |
| 1175 // undefined if not yet created. | 1182 // undefined if not yet created. |
| 1176 Object* GetHash(); | 1183 Object* GetHash(); |
| 1177 | 1184 |
| 1178 // Returns the permanent hash code associated with this object depending on | 1185 // Returns the permanent hash code associated with this object depending on |
| 1179 // the actual object type. May create and store a hash code if needed and none | 1186 // the actual object type. May create and store a hash code if needed and none |
| 1180 // exists. | 1187 // exists. |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 MUST_USE_RESULT static Maybe<PropertyAttributes> | 2252 MUST_USE_RESULT static Maybe<PropertyAttributes> |
| 2246 GetElementAttributeWithInterceptor(Handle<JSObject> object, | 2253 GetElementAttributeWithInterceptor(Handle<JSObject> object, |
| 2247 Handle<JSReceiver> receiver, | 2254 Handle<JSReceiver> receiver, |
| 2248 uint32_t index, bool continue_search); | 2255 uint32_t index, bool continue_search); |
| 2249 MUST_USE_RESULT static Maybe<PropertyAttributes> | 2256 MUST_USE_RESULT static Maybe<PropertyAttributes> |
| 2250 GetElementAttributeWithoutInterceptor(Handle<JSObject> object, | 2257 GetElementAttributeWithoutInterceptor(Handle<JSObject> object, |
| 2251 Handle<JSReceiver> receiver, | 2258 Handle<JSReceiver> receiver, |
| 2252 uint32_t index, | 2259 uint32_t index, |
| 2253 bool continue_search); | 2260 bool continue_search); |
| 2254 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithCallback( | 2261 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithCallback( |
| 2255 Handle<JSObject> object, | 2262 Handle<Object> object, Handle<Object> structure, uint32_t index, |
| 2256 Handle<Object> structure, | 2263 Handle<Object> value, Handle<JSObject> holder, StrictMode strict_mode); |
| 2257 uint32_t index, | |
| 2258 Handle<Object> value, | |
| 2259 Handle<JSObject> holder, | |
| 2260 StrictMode strict_mode); | |
| 2261 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithInterceptor( | 2264 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithInterceptor( |
| 2262 Handle<JSObject> object, | 2265 Handle<JSObject> object, |
| 2263 uint32_t index, | 2266 uint32_t index, |
| 2264 Handle<Object> value, | 2267 Handle<Object> value, |
| 2265 PropertyAttributes attributes, | 2268 PropertyAttributes attributes, |
| 2266 StrictMode strict_mode, | 2269 StrictMode strict_mode, |
| 2267 bool check_prototype, | 2270 bool check_prototype, |
| 2268 SetPropertyMode set_mode); | 2271 SetPropertyMode set_mode); |
| 2269 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithoutInterceptor( | 2272 MUST_USE_RESULT static MaybeHandle<Object> SetElementWithoutInterceptor( |
| 2270 Handle<JSObject> object, | 2273 Handle<JSObject> object, |
| (...skipping 8579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10850 } else { | 10853 } else { |
| 10851 value &= ~(1 << bit_position); | 10854 value &= ~(1 << bit_position); |
| 10852 } | 10855 } |
| 10853 return value; | 10856 return value; |
| 10854 } | 10857 } |
| 10855 }; | 10858 }; |
| 10856 | 10859 |
| 10857 } } // namespace v8::internal | 10860 } } // namespace v8::internal |
| 10858 | 10861 |
| 10859 #endif // V8_OBJECTS_H_ | 10862 #endif // V8_OBJECTS_H_ |
| OLD | NEW |