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 1417 matching lines...) Loading... |
1428 PropertyAttributes GetLocalPropertyAttribute(String* name); | 1428 PropertyAttributes GetLocalPropertyAttribute(String* name); |
1429 | 1429 |
1430 // Can cause a GC. | 1430 // Can cause a GC. |
1431 inline bool HasProperty(String* name); | 1431 inline bool HasProperty(String* name); |
1432 inline bool HasLocalProperty(String* name); | 1432 inline bool HasLocalProperty(String* name); |
1433 inline bool HasElement(uint32_t index); | 1433 inline bool HasElement(uint32_t index); |
1434 | 1434 |
1435 // Return the object's prototype (might be Heap::null_value()). | 1435 // Return the object's prototype (might be Heap::null_value()). |
1436 inline Object* GetPrototype(); | 1436 inline Object* GetPrototype(); |
1437 | 1437 |
| 1438 // Return the constructor function (may be Heap::null_value()). |
| 1439 inline Object* GetConstructor(); |
| 1440 |
1438 // Set the object's prototype (only JSReceiver and null are allowed). | 1441 // Set the object's prototype (only JSReceiver and null are allowed). |
1439 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value, | 1442 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value, |
1440 bool skip_hidden_prototypes); | 1443 bool skip_hidden_prototypes); |
1441 | 1444 |
1442 // Retrieves a permanent object identity hash code. The undefined value might | 1445 // Retrieves a permanent object identity hash code. The undefined value might |
1443 // be returned in case no hash was created yet and OMIT_CREATION was used. | 1446 // be returned in case no hash was created yet and OMIT_CREATION was used. |
1444 inline MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); | 1447 inline MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); |
1445 | 1448 |
1446 // Lookup a property. If found, the result is valid and has | 1449 // Lookup a property. If found, the result is valid and has |
1447 // detailed information. | 1450 // detailed information. |
(...skipping 7344 matching lines...) Loading... |
8792 } else { | 8795 } else { |
8793 value &= ~(1 << bit_position); | 8796 value &= ~(1 << bit_position); |
8794 } | 8797 } |
8795 return value; | 8798 return value; |
8796 } | 8799 } |
8797 }; | 8800 }; |
8798 | 8801 |
8799 } } // namespace v8::internal | 8802 } } // namespace v8::internal |
8800 | 8803 |
8801 #endif // V8_OBJECTS_H_ | 8804 #endif // V8_OBJECTS_H_ |
OLD | NEW |