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 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 Handle<Name> key, | 2290 Handle<Name> key, |
2291 Handle<Object> value); | 2291 Handle<Object> value); |
2292 // Returns a failure if a GC is required. | 2292 // Returns a failure if a GC is required. |
2293 MUST_USE_RESULT MaybeObject* SetHiddenProperty(Name* key, Object* value); | 2293 MUST_USE_RESULT MaybeObject* SetHiddenProperty(Name* key, Object* value); |
2294 // Gets the value of a hidden property with the given key. Returns the hole | 2294 // Gets the value of a hidden property with the given key. Returns the hole |
2295 // if the property doesn't exist (or if called on a detached proxy), | 2295 // if the property doesn't exist (or if called on a detached proxy), |
2296 // otherwise returns the value set for the key. | 2296 // otherwise returns the value set for the key. |
2297 Object* GetHiddenProperty(Name* key); | 2297 Object* GetHiddenProperty(Name* key); |
2298 // Deletes a hidden property. Deleting a non-existing property is | 2298 // Deletes a hidden property. Deleting a non-existing property is |
2299 // considered successful. | 2299 // considered successful. |
2300 void DeleteHiddenProperty(Name* key); | 2300 static void DeleteHiddenProperty(Handle<JSObject> object, |
| 2301 Handle<Name> key); |
2301 // Returns true if the object has a property with the hidden string as name. | 2302 // Returns true if the object has a property with the hidden string as name. |
2302 bool HasHiddenProperties(); | 2303 bool HasHiddenProperties(); |
2303 | 2304 |
2304 static int GetIdentityHash(Handle<JSObject> obj); | 2305 static int GetIdentityHash(Handle<JSObject> obj); |
2305 MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); | 2306 MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); |
2306 MUST_USE_RESULT MaybeObject* SetIdentityHash(Smi* hash, CreationFlag flag); | 2307 MUST_USE_RESULT MaybeObject* SetIdentityHash(Smi* hash, CreationFlag flag); |
2307 | 2308 |
2308 inline void ValidateElements(); | 2309 inline void ValidateElements(); |
2309 | 2310 |
2310 // Makes sure that this object can contain HeapObject as elements. | 2311 // Makes sure that this object can contain HeapObject as elements. |
(...skipping 7923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10234 } else { | 10235 } else { |
10235 value &= ~(1 << bit_position); | 10236 value &= ~(1 << bit_position); |
10236 } | 10237 } |
10237 return value; | 10238 return value; |
10238 } | 10239 } |
10239 }; | 10240 }; |
10240 | 10241 |
10241 } } // namespace v8::internal | 10242 } } // namespace v8::internal |
10242 | 10243 |
10243 #endif // V8_OBJECTS_H_ | 10244 #endif // V8_OBJECTS_H_ |
OLD | NEW |