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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 // Failure is returned otherwise. | 1450 // Failure is returned otherwise. |
1451 MUST_USE_RESULT inline MaybeObject* ToSmi(); | 1451 MUST_USE_RESULT inline MaybeObject* ToSmi(); |
1452 | 1452 |
1453 void Lookup(Name* name, LookupResult* result); | 1453 void Lookup(Name* name, LookupResult* result); |
1454 | 1454 |
1455 // Property access. | 1455 // Property access. |
1456 MUST_USE_RESULT inline MaybeObject* GetProperty(Name* key); | 1456 MUST_USE_RESULT inline MaybeObject* GetProperty(Name* key); |
1457 MUST_USE_RESULT inline MaybeObject* GetProperty( | 1457 MUST_USE_RESULT inline MaybeObject* GetProperty( |
1458 Name* key, | 1458 Name* key, |
1459 PropertyAttributes* attributes); | 1459 PropertyAttributes* attributes); |
| 1460 |
| 1461 // TODO(yangguo): this should eventually replace the non-handlified version. |
| 1462 static Handle<Object> GetPropertyWithReceiver(Handle<Object> object, |
| 1463 Handle<Object> receiver, |
| 1464 Handle<Name> name, |
| 1465 PropertyAttributes* attributes); |
1460 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver( | 1466 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver( |
1461 Object* receiver, | 1467 Object* receiver, |
1462 Name* key, | 1468 Name* key, |
1463 PropertyAttributes* attributes); | 1469 PropertyAttributes* attributes); |
1464 | 1470 |
1465 static Handle<Object> GetProperty(Handle<Object> object, | 1471 static Handle<Object> GetProperty(Handle<Object> object, |
1466 Handle<Name> key); | 1472 Handle<Name> key); |
1467 static Handle<Object> GetProperty(Handle<Object> object, | 1473 static Handle<Object> GetProperty(Handle<Object> object, |
1468 Handle<Object> receiver, | 1474 Handle<Object> receiver, |
1469 LookupResult* result, | 1475 LookupResult* result, |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2236 // Defines an AccessorInfo property on the given object. | 2242 // Defines an AccessorInfo property on the given object. |
2237 static Handle<Object> SetAccessor(Handle<JSObject> object, | 2243 static Handle<Object> SetAccessor(Handle<JSObject> object, |
2238 Handle<AccessorInfo> info); | 2244 Handle<AccessorInfo> info); |
2239 | 2245 |
2240 // Used from Object::GetProperty(). | 2246 // Used from Object::GetProperty(). |
2241 MUST_USE_RESULT MaybeObject* GetPropertyWithFailedAccessCheck( | 2247 MUST_USE_RESULT MaybeObject* GetPropertyWithFailedAccessCheck( |
2242 Object* receiver, | 2248 Object* receiver, |
2243 LookupResult* result, | 2249 LookupResult* result, |
2244 Name* name, | 2250 Name* name, |
2245 PropertyAttributes* attributes); | 2251 PropertyAttributes* attributes); |
2246 MUST_USE_RESULT MaybeObject* GetPropertyWithInterceptor( | 2252 static Handle<Object> GetPropertyWithInterceptor( |
2247 Object* receiver, | 2253 Handle<JSObject> object, |
2248 Name* name, | 2254 Handle<Object> receiver, |
| 2255 Handle<Name> name, |
2249 PropertyAttributes* attributes); | 2256 PropertyAttributes* attributes); |
2250 MUST_USE_RESULT MaybeObject* GetPropertyPostInterceptor( | 2257 static Handle<Object> GetPropertyPostInterceptor( |
2251 Object* receiver, | 2258 Handle<JSObject> object, |
2252 Name* name, | 2259 Handle<Object> receiver, |
| 2260 Handle<Name> name, |
2253 PropertyAttributes* attributes); | 2261 PropertyAttributes* attributes); |
2254 MUST_USE_RESULT MaybeObject* GetLocalPropertyPostInterceptor( | 2262 MUST_USE_RESULT MaybeObject* GetLocalPropertyPostInterceptor( |
2255 Object* receiver, | 2263 Object* receiver, |
2256 Name* name, | 2264 Name* name, |
2257 PropertyAttributes* attributes); | 2265 PropertyAttributes* attributes); |
2258 | 2266 |
2259 // Returns true if this is an instance of an api function and has | 2267 // Returns true if this is an instance of an api function and has |
2260 // been modified since it was created. May give false positives. | 2268 // been modified since it was created. May give false positives. |
2261 bool IsDirty(); | 2269 bool IsDirty(); |
2262 | 2270 |
(...skipping 8022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10285 } else { | 10293 } else { |
10286 value &= ~(1 << bit_position); | 10294 value &= ~(1 << bit_position); |
10287 } | 10295 } |
10288 return value; | 10296 return value; |
10289 } | 10297 } |
10290 }; | 10298 }; |
10291 | 10299 |
10292 } } // namespace v8::internal | 10300 } } // namespace v8::internal |
10293 | 10301 |
10294 #endif // V8_OBJECTS_H_ | 10302 #endif // V8_OBJECTS_H_ |
OLD | NEW |