| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 // Returns the constructor name (the name (possibly, inferred name) of the | 1387 // Returns the constructor name (the name (possibly, inferred name) of the |
| 1388 // function that was used to instantiate the object). | 1388 // function that was used to instantiate the object). |
| 1389 String* constructor_name(); | 1389 String* constructor_name(); |
| 1390 | 1390 |
| 1391 inline PropertyAttributes GetPropertyAttribute(String* name); | 1391 inline PropertyAttributes GetPropertyAttribute(String* name); |
| 1392 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, | 1392 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, |
| 1393 String* name); | 1393 String* name); |
| 1394 PropertyAttributes GetLocalPropertyAttribute(String* name); | 1394 PropertyAttributes GetLocalPropertyAttribute(String* name); |
| 1395 | 1395 |
| 1396 // Can cause a GC. | 1396 // Can cause a GC. |
| 1397 bool HasProperty(String* name) { | 1397 inline bool HasProperty(String* name); |
| 1398 return GetPropertyAttribute(name) != ABSENT; | 1398 inline bool HasLocalProperty(String* name); |
| 1399 } | |
| 1400 | |
| 1401 // Can cause a GC. | |
| 1402 bool HasLocalProperty(String* name) { | |
| 1403 return GetLocalPropertyAttribute(name) != ABSENT; | |
| 1404 } | |
| 1405 | 1399 |
| 1406 // Return the object's prototype (might be Heap::null_value()). | 1400 // Return the object's prototype (might be Heap::null_value()). |
| 1407 inline Object* GetPrototype(); | 1401 inline Object* GetPrototype(); |
| 1408 | 1402 |
| 1409 // Set the object's prototype (only JSReceiver and null are allowed). | 1403 // Set the object's prototype (only JSReceiver and null are allowed). |
| 1410 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value, | 1404 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value, |
| 1411 bool skip_hidden_prototypes); | 1405 bool skip_hidden_prototypes); |
| 1412 | 1406 |
| 1413 // Lookup a property. If found, the result is valid and has | 1407 // Lookup a property. If found, the result is valid and has |
| 1414 // detailed information. | 1408 // detailed information. |
| (...skipping 5059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6474 public: | 6468 public: |
| 6475 // [handler]: The handler property. | 6469 // [handler]: The handler property. |
| 6476 DECL_ACCESSORS(handler, Object) | 6470 DECL_ACCESSORS(handler, Object) |
| 6477 | 6471 |
| 6478 // [padding]: The padding slot (unused, see below). | 6472 // [padding]: The padding slot (unused, see below). |
| 6479 DECL_ACCESSORS(padding, Object) | 6473 DECL_ACCESSORS(padding, Object) |
| 6480 | 6474 |
| 6481 // Casting. | 6475 // Casting. |
| 6482 static inline JSProxy* cast(Object* obj); | 6476 static inline JSProxy* cast(Object* obj); |
| 6483 | 6477 |
| 6478 bool HasPropertyWithHandler(String* name); |
| 6479 |
| 6484 MUST_USE_RESULT MaybeObject* SetPropertyWithHandler( | 6480 MUST_USE_RESULT MaybeObject* SetPropertyWithHandler( |
| 6485 String* name, | 6481 String* name, |
| 6486 Object* value, | 6482 Object* value, |
| 6487 PropertyAttributes attributes, | 6483 PropertyAttributes attributes, |
| 6488 StrictModeFlag strict_mode); | 6484 StrictModeFlag strict_mode); |
| 6489 | 6485 |
| 6490 MUST_USE_RESULT MaybeObject* DeletePropertyWithHandler( | 6486 MUST_USE_RESULT MaybeObject* DeletePropertyWithHandler( |
| 6491 String* name, | 6487 String* name, |
| 6492 DeleteMode mode); | 6488 DeleteMode mode); |
| 6493 | 6489 |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7175 } else { | 7171 } else { |
| 7176 value &= ~(1 << bit_position); | 7172 value &= ~(1 << bit_position); |
| 7177 } | 7173 } |
| 7178 return value; | 7174 return value; |
| 7179 } | 7175 } |
| 7180 }; | 7176 }; |
| 7181 | 7177 |
| 7182 } } // namespace v8::internal | 7178 } } // namespace v8::internal |
| 7183 | 7179 |
| 7184 #endif // V8_OBJECTS_H_ | 7180 #endif // V8_OBJECTS_H_ |
| OLD | NEW |