| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 6749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6760 kPointerFieldsEndOffset, | 6760 kPointerFieldsEndOffset, |
| 6761 kSize> BodyDescriptor; | 6761 kSize> BodyDescriptor; |
| 6762 | 6762 |
| 6763 // Compares this map to another to see if they describe equivalent objects. | 6763 // Compares this map to another to see if they describe equivalent objects. |
| 6764 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if | 6764 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if |
| 6765 // it had exactly zero inobject properties. | 6765 // it had exactly zero inobject properties. |
| 6766 // The "shared" flags of both this map and |other| are ignored. | 6766 // The "shared" flags of both this map and |other| are ignored. |
| 6767 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode); | 6767 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode); |
| 6768 | 6768 |
| 6769 private: | 6769 private: |
| 6770 static Handle<TransitionArray> SetElementsTransitionMap( | 6770 static void ConnectElementsTransition(Handle<Map> parent, Handle<Map> child); |
| 6771 Handle<Map> map, Handle<Map> transitioned_map); | 6771 static void ConnectTransition(Handle<Map> parent, Handle<Map> child, |
| 6772 Handle<Name> name, SimpleTransitionFlag flag); |
| 6772 | 6773 |
| 6773 bool EquivalentToForTransition(Map* other); | 6774 bool EquivalentToForTransition(Map* other); |
| 6774 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); | 6775 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); |
| 6775 static Handle<Map> ShareDescriptor(Handle<Map> map, | 6776 static Handle<Map> ShareDescriptor(Handle<Map> map, |
| 6776 Handle<DescriptorArray> descriptors, | 6777 Handle<DescriptorArray> descriptors, |
| 6777 Descriptor* descriptor); | 6778 Descriptor* descriptor); |
| 6778 static Handle<Map> CopyInstallDescriptors( | 6779 static Handle<Map> CopyInstallDescriptors( |
| 6779 Handle<Map> map, | 6780 Handle<Map> map, |
| 6780 int new_descriptor, | 6781 int new_descriptor, |
| 6781 Handle<DescriptorArray> descriptors); | 6782 Handle<DescriptorArray> descriptors); |
| (...skipping 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11264 } else { | 11265 } else { |
| 11265 value &= ~(1 << bit_position); | 11266 value &= ~(1 << bit_position); |
| 11266 } | 11267 } |
| 11267 return value; | 11268 return value; |
| 11268 } | 11269 } |
| 11269 }; | 11270 }; |
| 11270 | 11271 |
| 11271 } } // namespace v8::internal | 11272 } } // namespace v8::internal |
| 11272 | 11273 |
| 11273 #endif // V8_OBJECTS_H_ | 11274 #endif // V8_OBJECTS_H_ |
| OLD | NEW |