| 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 // receiver is a JSGlobalProxy then the auxiliary object is a property | 1631 // receiver is a JSGlobalProxy then the auxiliary object is a property |
| 1632 // of its prototype, and if it's a detached proxy, then you can't have | 1632 // of its prototype, and if it's a detached proxy, then you can't have |
| 1633 // hidden properties. | 1633 // hidden properties. |
| 1634 | 1634 |
| 1635 // Sets a hidden property on this object. Returns this object if successful, | 1635 // Sets a hidden property on this object. Returns this object if successful, |
| 1636 // undefined if called on a detached proxy. | 1636 // undefined if called on a detached proxy. |
| 1637 static Handle<Object> SetHiddenProperty(Handle<JSObject> obj, | 1637 static Handle<Object> SetHiddenProperty(Handle<JSObject> obj, |
| 1638 Handle<String> key, | 1638 Handle<String> key, |
| 1639 Handle<Object> value); | 1639 Handle<Object> value); |
| 1640 // Returns a failure if a GC is required. | 1640 // Returns a failure if a GC is required. |
| 1641 MaybeObject* SetHiddenProperty(String* key, Object* value); | 1641 MUST_USE_RESULT MaybeObject* SetHiddenProperty(String* key, Object* value); |
| 1642 // Gets the value of a hidden property with the given key. Returns undefined | 1642 // Gets the value of a hidden property with the given key. Returns undefined |
| 1643 // if the property doesn't exist (or if called on a detached proxy), | 1643 // if the property doesn't exist (or if called on a detached proxy), |
| 1644 // otherwise returns the value set for the key. | 1644 // otherwise returns the value set for the key. |
| 1645 Object* GetHiddenProperty(String* key); | 1645 Object* GetHiddenProperty(String* key); |
| 1646 // Deletes a hidden property. Deleting a non-existing property is | 1646 // Deletes a hidden property. Deleting a non-existing property is |
| 1647 // considered successful. | 1647 // considered successful. |
| 1648 void DeleteHiddenProperty(String* key); | 1648 void DeleteHiddenProperty(String* key); |
| 1649 // Returns true if the object has a property with the hidden symbol as name. | 1649 // Returns true if the object has a property with the hidden symbol as name. |
| 1650 bool HasHiddenProperties(); | 1650 bool HasHiddenProperties(); |
| 1651 | 1651 |
| (...skipping 6593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8245 } else { | 8245 } else { |
| 8246 value &= ~(1 << bit_position); | 8246 value &= ~(1 << bit_position); |
| 8247 } | 8247 } |
| 8248 return value; | 8248 return value; |
| 8249 } | 8249 } |
| 8250 }; | 8250 }; |
| 8251 | 8251 |
| 8252 } } // namespace v8::internal | 8252 } } // namespace v8::internal |
| 8253 | 8253 |
| 8254 #endif // V8_OBJECTS_H_ | 8254 #endif // V8_OBJECTS_H_ |
| OLD | NEW |