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 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 // Converts this to a Smi if possible. | 1528 // Converts this to a Smi if possible. |
1529 // Failure is returned otherwise. | 1529 // Failure is returned otherwise. |
1530 static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, | 1530 static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, |
1531 Handle<Object> object); | 1531 Handle<Object> object); |
1532 MUST_USE_RESULT inline MaybeObject* ToSmi(); | 1532 MUST_USE_RESULT inline MaybeObject* ToSmi(); |
1533 | 1533 |
1534 void Lookup(Name* name, LookupResult* result); | 1534 void Lookup(Name* name, LookupResult* result); |
1535 | 1535 |
1536 // Property access. | 1536 // Property access. |
1537 MUST_USE_RESULT inline MaybeObject* GetProperty(Name* key); | 1537 MUST_USE_RESULT inline MaybeObject* GetProperty(Name* key); |
1538 MUST_USE_RESULT inline MaybeObject* GetProperty( | |
1539 Name* key, | |
1540 PropertyAttributes* attributes); | |
1541 | 1538 |
1542 // TODO(yangguo): this should eventually replace the non-handlified version. | 1539 // TODO(yangguo): this should eventually replace the non-handlified version. |
1543 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( | 1540 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( |
1544 Handle<Object> object, | 1541 Handle<Object> object, |
1545 Handle<Object> receiver, | 1542 Handle<Object> receiver, |
1546 Handle<Name> name, | 1543 Handle<Name> name, |
1547 PropertyAttributes* attributes); | 1544 PropertyAttributes* attributes); |
1548 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver( | 1545 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver( |
1549 Object* receiver, | 1546 Object* receiver, |
1550 Name* key, | 1547 Name* key, |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2385 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( | 2382 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithInterceptor( |
2386 Handle<JSObject> object, | 2383 Handle<JSObject> object, |
2387 Handle<Object> receiver, | 2384 Handle<Object> receiver, |
2388 Handle<Name> name, | 2385 Handle<Name> name, |
2389 PropertyAttributes* attributes); | 2386 PropertyAttributes* attributes); |
2390 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyPostInterceptor( | 2387 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyPostInterceptor( |
2391 Handle<JSObject> object, | 2388 Handle<JSObject> object, |
2392 Handle<Object> receiver, | 2389 Handle<Object> receiver, |
2393 Handle<Name> name, | 2390 Handle<Name> name, |
2394 PropertyAttributes* attributes); | 2391 PropertyAttributes* attributes); |
2395 MUST_USE_RESULT MaybeObject* GetLocalPropertyPostInterceptor( | |
2396 Object* receiver, | |
2397 Name* name, | |
2398 PropertyAttributes* attributes); | |
2399 | 2392 |
2400 // Returns true if this is an instance of an api function and has | 2393 // Returns true if this is an instance of an api function and has |
2401 // been modified since it was created. May give false positives. | 2394 // been modified since it was created. May give false positives. |
2402 bool IsDirty(); | 2395 bool IsDirty(); |
2403 | 2396 |
2404 // Accessors for hidden properties object. | 2397 // Accessors for hidden properties object. |
2405 // | 2398 // |
2406 // Hidden properties are not local properties of the object itself. | 2399 // Hidden properties are not local properties of the object itself. |
2407 // Instead they are stored in an auxiliary structure kept as a local | 2400 // Instead they are stored in an auxiliary structure kept as a local |
2408 // property with a special name Heap::hidden_string(). But if the | 2401 // property with a special name Heap::hidden_string(). But if the |
(...skipping 8604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11013 } else { | 11006 } else { |
11014 value &= ~(1 << bit_position); | 11007 value &= ~(1 << bit_position); |
11015 } | 11008 } |
11016 return value; | 11009 return value; |
11017 } | 11010 } |
11018 }; | 11011 }; |
11019 | 11012 |
11020 } } // namespace v8::internal | 11013 } } // namespace v8::internal |
11021 | 11014 |
11022 #endif // V8_OBJECTS_H_ | 11015 #endif // V8_OBJECTS_H_ |
OLD | NEW |