| 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 6460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6471 ElementsKind to_kind); | 6471 ElementsKind to_kind); |
| 6472 | 6472 |
| 6473 void DeprecateTransitionTree(); | 6473 void DeprecateTransitionTree(); |
| 6474 bool DeprecateTarget(PropertyKind kind, Name* key, | 6474 bool DeprecateTarget(PropertyKind kind, Name* key, |
| 6475 PropertyAttributes attributes, | 6475 PropertyAttributes attributes, |
| 6476 DescriptorArray* new_descriptors, | 6476 DescriptorArray* new_descriptors, |
| 6477 LayoutDescriptor* new_layout_descriptor); | 6477 LayoutDescriptor* new_layout_descriptor); |
| 6478 | 6478 |
| 6479 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); | 6479 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); |
| 6480 | 6480 |
| 6481 // Update field type of the given descriptor to new representation and new |
| 6482 // type. The type must be prepared for storing in descriptor array: |
| 6483 // it must be either a simple type or a map wrapped in a weak cell. |
| 6481 void UpdateFieldType(int descriptor_number, Handle<Name> name, | 6484 void UpdateFieldType(int descriptor_number, Handle<Name> name, |
| 6482 Representation new_representation, | 6485 Representation new_representation, |
| 6483 Handle<HeapType> new_type); | 6486 Handle<Object> new_wrapped_type); |
| 6484 | 6487 |
| 6485 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind, | 6488 void PrintReconfiguration(FILE* file, int modify_index, PropertyKind kind, |
| 6486 PropertyAttributes attributes); | 6489 PropertyAttributes attributes); |
| 6487 void PrintGeneralization(FILE* file, | 6490 void PrintGeneralization(FILE* file, |
| 6488 const char* reason, | 6491 const char* reason, |
| 6489 int modify_index, | 6492 int modify_index, |
| 6490 int split, | 6493 int split, |
| 6491 int descriptors, | 6494 int descriptors, |
| 6492 bool constant_to_field, | 6495 bool constant_to_field, |
| 6493 Representation old_representation, | 6496 Representation old_representation, |
| (...skipping 4496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10990 } else { | 10993 } else { |
| 10991 value &= ~(1 << bit_position); | 10994 value &= ~(1 << bit_position); |
| 10992 } | 10995 } |
| 10993 return value; | 10996 return value; |
| 10994 } | 10997 } |
| 10995 }; | 10998 }; |
| 10996 | 10999 |
| 10997 } } // namespace v8::internal | 11000 } } // namespace v8::internal |
| 10998 | 11001 |
| 10999 #endif // V8_OBJECTS_H_ | 11002 #endif // V8_OBJECTS_H_ |
| OLD | NEW |