OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2366 // hidden properties. | 2366 // hidden properties. |
2367 | 2367 |
2368 // Sets a hidden property on this object. Returns this object if successful, | 2368 // Sets a hidden property on this object. Returns this object if successful, |
2369 // undefined if called on a detached proxy. | 2369 // undefined if called on a detached proxy. |
2370 static Handle<Object> SetHiddenProperty(Handle<JSObject> object, | 2370 static Handle<Object> SetHiddenProperty(Handle<JSObject> object, |
2371 Handle<Name> key, | 2371 Handle<Name> key, |
2372 Handle<Object> value); | 2372 Handle<Object> value); |
2373 // Gets the value of a hidden property with the given key. Returns the hole | 2373 // Gets the value of a hidden property with the given key. Returns the hole |
2374 // if the property doesn't exist (or if called on a detached proxy), | 2374 // if the property doesn't exist (or if called on a detached proxy), |
2375 // otherwise returns the value set for the key. | 2375 // otherwise returns the value set for the key. |
2376 Object* GetHiddenProperty(Name* key); | 2376 Object* GetHiddenProperty(Handle<Name> key); |
2377 // Deletes a hidden property. Deleting a non-existing property is | 2377 // Deletes a hidden property. Deleting a non-existing property is |
2378 // considered successful. | 2378 // considered successful. |
2379 static void DeleteHiddenProperty(Handle<JSObject> object, | 2379 static void DeleteHiddenProperty(Handle<JSObject> object, |
2380 Handle<Name> key); | 2380 Handle<Name> key); |
2381 // Returns true if the object has a property with the hidden string as name. | 2381 // Returns true if the object has a property with the hidden string as name. |
2382 static bool HasHiddenProperties(Handle<JSObject> object); | 2382 static bool HasHiddenProperties(Handle<JSObject> object); |
2383 | 2383 |
2384 static void SetIdentityHash(Handle<JSObject> object, Handle<Smi> hash); | 2384 static void SetIdentityHash(Handle<JSObject> object, Handle<Smi> hash); |
2385 | 2385 |
2386 static inline void ValidateElements(Handle<JSObject> object); | 2386 static inline void ValidateElements(Handle<JSObject> object); |
(...skipping 8805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11192 } else { | 11192 } else { |
11193 value &= ~(1 << bit_position); | 11193 value &= ~(1 << bit_position); |
11194 } | 11194 } |
11195 return value; | 11195 return value; |
11196 } | 11196 } |
11197 }; | 11197 }; |
11198 | 11198 |
11199 } } // namespace v8::internal | 11199 } } // namespace v8::internal |
11200 | 11200 |
11201 #endif // V8_OBJECTS_H_ | 11201 #endif // V8_OBJECTS_H_ |
OLD | NEW |