| 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 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3056 // Layout description for the bridge array. | 3056 // Layout description for the bridge array. |
| 3057 static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize; | 3057 static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize; |
| 3058 | 3058 |
| 3059 // Layout of descriptor. | 3059 // Layout of descriptor. |
| 3060 static const int kDescriptorKey = 0; | 3060 static const int kDescriptorKey = 0; |
| 3061 static const int kDescriptorDetails = 1; | 3061 static const int kDescriptorDetails = 1; |
| 3062 static const int kDescriptorValue = 2; | 3062 static const int kDescriptorValue = 2; |
| 3063 static const int kDescriptorSize = 3; | 3063 static const int kDescriptorSize = 3; |
| 3064 | 3064 |
| 3065 #ifdef OBJECT_PRINT | 3065 #ifdef OBJECT_PRINT |
| 3066 // For our gdb macros, we should perhaps change these in the future. |
| 3067 void Print(); |
| 3068 |
| 3066 // Print all the descriptors. | 3069 // Print all the descriptors. |
| 3067 void PrintDescriptors(std::ostream& os); // NOLINT | 3070 void PrintDescriptors(std::ostream& os); // NOLINT |
| 3068 #endif | 3071 #endif |
| 3069 | 3072 |
| 3070 #ifdef DEBUG | 3073 #ifdef DEBUG |
| 3071 // Is the descriptor array sorted and without duplicates? | 3074 // Is the descriptor array sorted and without duplicates? |
| 3072 bool IsSortedNoDuplicates(int valid_descriptors = -1); | 3075 bool IsSortedNoDuplicates(int valid_descriptors = -1); |
| 3073 | 3076 |
| 3074 // Is the descriptor array consistent with the back pointers in targets? | 3077 // Is the descriptor array consistent with the back pointers in targets? |
| 3075 bool IsConsistentWithBackPointers(Map* current_map); | 3078 bool IsConsistentWithBackPointers(Map* current_map); |
| (...skipping 7841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10917 } else { | 10920 } else { |
| 10918 value &= ~(1 << bit_position); | 10921 value &= ~(1 << bit_position); |
| 10919 } | 10922 } |
| 10920 return value; | 10923 return value; |
| 10921 } | 10924 } |
| 10922 }; | 10925 }; |
| 10923 | 10926 |
| 10924 } } // namespace v8::internal | 10927 } } // namespace v8::internal |
| 10925 | 10928 |
| 10926 #endif // V8_OBJECTS_H_ | 10929 #endif // V8_OBJECTS_H_ |
| OLD | NEW |