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 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2315 // lowest upper bound of all known representations for that field. | 2315 // lowest upper bound of all known representations for that field. |
2316 static void MigrateInstance(Handle<JSObject> instance); | 2316 static void MigrateInstance(Handle<JSObject> instance); |
2317 | 2317 |
2318 // Migrates the given object only if the target map is already available, | 2318 // Migrates the given object only if the target map is already available, |
2319 // or returns an empty handle if such a map is not yet available. | 2319 // or returns an empty handle if such a map is not yet available. |
2320 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); | 2320 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); |
2321 | 2321 |
2322 // Retrieve a value in a normalized object given a lookup result. | 2322 // Retrieve a value in a normalized object given a lookup result. |
2323 // Handles the special representation of JS global objects. | 2323 // Handles the special representation of JS global objects. |
2324 Object* GetNormalizedProperty(const LookupResult* result); | 2324 Object* GetNormalizedProperty(const LookupResult* result); |
| 2325 static Handle<Object> GetNormalizedProperty(Handle<JSObject> object, |
| 2326 const LookupResult* result); |
2325 | 2327 |
2326 // Sets the property value in a normalized object given a lookup result. | 2328 // Sets the property value in a normalized object given a lookup result. |
2327 // Handles the special representation of JS global objects. | 2329 // Handles the special representation of JS global objects. |
2328 static void SetNormalizedProperty(Handle<JSObject> object, | 2330 static void SetNormalizedProperty(Handle<JSObject> object, |
2329 const LookupResult* result, | 2331 const LookupResult* result, |
2330 Handle<Object> value); | 2332 Handle<Object> value); |
2331 | 2333 |
2332 // Sets the property value in a normalized object given (key, value, details). | 2334 // Sets the property value in a normalized object given (key, value, details). |
2333 // Handles the special representation of JS global objects. | 2335 // Handles the special representation of JS global objects. |
2334 static void SetNormalizedProperty(Handle<JSObject> object, | 2336 static void SetNormalizedProperty(Handle<JSObject> object, |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 kObjectIsShallowArray = 1 | 2668 kObjectIsShallowArray = 1 |
2667 }; | 2669 }; |
2668 | 2670 |
2669 static Handle<JSObject> Copy(Handle<JSObject> object); | 2671 static Handle<JSObject> Copy(Handle<JSObject> object); |
2670 static Handle<JSObject> DeepCopy(Handle<JSObject> object, | 2672 static Handle<JSObject> DeepCopy(Handle<JSObject> object, |
2671 AllocationSiteUsageContext* site_context, | 2673 AllocationSiteUsageContext* site_context, |
2672 DeepCopyHints hints = kNoHints); | 2674 DeepCopyHints hints = kNoHints); |
2673 static Handle<JSObject> DeepWalk(Handle<JSObject> object, | 2675 static Handle<JSObject> DeepWalk(Handle<JSObject> object, |
2674 AllocationSiteCreationContext* site_context); | 2676 AllocationSiteCreationContext* site_context); |
2675 | 2677 |
| 2678 static Handle<Object> GetDataProperty(Handle<JSObject> object, |
| 2679 Handle<Name> key); |
| 2680 |
2676 // Casting. | 2681 // Casting. |
2677 static inline JSObject* cast(Object* obj); | 2682 static inline JSObject* cast(Object* obj); |
2678 | 2683 |
2679 // Dispatched behavior. | 2684 // Dispatched behavior. |
2680 void JSObjectShortPrint(StringStream* accumulator); | 2685 void JSObjectShortPrint(StringStream* accumulator); |
2681 DECLARE_PRINTER(JSObject) | 2686 DECLARE_PRINTER(JSObject) |
2682 DECLARE_VERIFIER(JSObject) | 2687 DECLARE_VERIFIER(JSObject) |
2683 #ifdef OBJECT_PRINT | 2688 #ifdef OBJECT_PRINT |
2684 void PrintProperties(FILE* out = stdout); | 2689 void PrintProperties(FILE* out = stdout); |
2685 void PrintElements(FILE* out = stdout); | 2690 void PrintElements(FILE* out = stdout); |
(...skipping 8362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11048 } else { | 11053 } else { |
11049 value &= ~(1 << bit_position); | 11054 value &= ~(1 << bit_position); |
11050 } | 11055 } |
11051 return value; | 11056 return value; |
11052 } | 11057 } |
11053 }; | 11058 }; |
11054 | 11059 |
11055 } } // namespace v8::internal | 11060 } } // namespace v8::internal |
11056 | 11061 |
11057 #endif // V8_OBJECTS_H_ | 11062 #endif // V8_OBJECTS_H_ |
OLD | NEW |