| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 6425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6436 void ZapTransitions(); | 6436 void ZapTransitions(); |
| 6437 | 6437 |
| 6438 void DeprecateTransitionTree(); | 6438 void DeprecateTransitionTree(); |
| 6439 bool DeprecateTarget(PropertyKind kind, Name* key, | 6439 bool DeprecateTarget(PropertyKind kind, Name* key, |
| 6440 PropertyAttributes attributes, | 6440 PropertyAttributes attributes, |
| 6441 DescriptorArray* new_descriptors, | 6441 DescriptorArray* new_descriptors, |
| 6442 LayoutDescriptor* new_layout_descriptor); | 6442 LayoutDescriptor* new_layout_descriptor); |
| 6443 | 6443 |
| 6444 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); | 6444 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); |
| 6445 | 6445 |
| 6446 // Update field type of the given descriptor to new representation and new | |
| 6447 // type. The type must be prepared for storing in descriptor array: | |
| 6448 // it must be either a simple type or a map wrapped in a weak cell. | |
| 6449 void UpdateFieldType(int descriptor_number, Handle<Name> name, | 6446 void UpdateFieldType(int descriptor_number, Handle<Name> name, |
| 6450 Representation new_representation, | 6447 Representation new_representation, |
| 6451 Handle<Object> new_wrapped_type); | 6448 Handle<HeapType> new_type); |
| 6452 | 6449 |
| 6453 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind, | 6450 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind, |
| 6454 PropertyAttributes attributes); | 6451 PropertyAttributes attributes); |
| 6455 void PrintGeneralization(FILE* file, | 6452 void PrintGeneralization(FILE* file, |
| 6456 const char* reason, | 6453 const char* reason, |
| 6457 int modify_index, | 6454 int modify_index, |
| 6458 int split, | 6455 int split, |
| 6459 int descriptors, | 6456 int descriptors, |
| 6460 bool constant_to_field, | 6457 bool constant_to_field, |
| 6461 Representation old_representation, | 6458 Representation old_representation, |
| (...skipping 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10981 } else { | 10978 } else { |
| 10982 value &= ~(1 << bit_position); | 10979 value &= ~(1 << bit_position); |
| 10983 } | 10980 } |
| 10984 return value; | 10981 return value; |
| 10985 } | 10982 } |
| 10986 }; | 10983 }; |
| 10987 | 10984 |
| 10988 } } // namespace v8::internal | 10985 } } // namespace v8::internal |
| 10989 | 10986 |
| 10990 #endif // V8_OBJECTS_H_ | 10987 #endif // V8_OBJECTS_H_ |
| OLD | NEW |