| 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 5971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5982 inline void ClearTransitions(Heap* heap, | 5982 inline void ClearTransitions(Heap* heap, |
| 5983 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | 5983 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
| 5984 | 5984 |
| 5985 void DeprecateTransitionTree(); | 5985 void DeprecateTransitionTree(); |
| 5986 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); | 5986 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); |
| 5987 | 5987 |
| 5988 Map* FindRootMap(); | 5988 Map* FindRootMap(); |
| 5989 Map* FindUpdatedMap(int verbatim, int length, DescriptorArray* descriptors); | 5989 Map* FindUpdatedMap(int verbatim, int length, DescriptorArray* descriptors); |
| 5990 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); | 5990 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); |
| 5991 | 5991 |
| 5992 inline int GetInObjectPropertyOffset(int index); |
| 5993 // Calculates index of the in-object property by offset. Values below zero |
| 5994 // correspond to accesses to the object header fields. |
| 5995 inline int GetInObjectPropertyIndex(int offset); |
| 5996 |
| 5992 int NumberOfFields(); | 5997 int NumberOfFields(); |
| 5993 | 5998 |
| 5994 bool InstancesNeedRewriting(Map* target, | 5999 bool InstancesNeedRewriting(Map* target, |
| 5995 int target_number_of_fields, | 6000 int target_number_of_fields, |
| 5996 int target_inobject, | 6001 int target_inobject, |
| 5997 int target_unused); | 6002 int target_unused); |
| 5998 static Handle<Map> GeneralizeAllFieldRepresentations( | 6003 static Handle<Map> GeneralizeAllFieldRepresentations( |
| 5999 Handle<Map> map, | 6004 Handle<Map> map, |
| 6000 Representation new_representation); | 6005 Representation new_representation); |
| 6001 static Handle<Map> GeneralizeRepresentation( | 6006 static Handle<Map> GeneralizeRepresentation( |
| (...skipping 4765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10767 } else { | 10772 } else { |
| 10768 value &= ~(1 << bit_position); | 10773 value &= ~(1 << bit_position); |
| 10769 } | 10774 } |
| 10770 return value; | 10775 return value; |
| 10771 } | 10776 } |
| 10772 }; | 10777 }; |
| 10773 | 10778 |
| 10774 } } // namespace v8::internal | 10779 } } // namespace v8::internal |
| 10775 | 10780 |
| 10776 #endif // V8_OBJECTS_H_ | 10781 #endif // V8_OBJECTS_H_ |
| OLD | NEW |