| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_LAYOUT_DESCRIPTOR_H_ | 5 #ifndef V8_LAYOUT_DESCRIPTOR_H_ |
| 6 #define V8_LAYOUT_DESCRIPTOR_H_ | 6 #define V8_LAYOUT_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/objects.h" | 10 #include "src/objects.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // only when corresponding descriptors array is trimmed. | 76 // only when corresponding descriptors array is trimmed. |
| 77 // The layout descriptor could be trimmed if it was slow or it could | 77 // The layout descriptor could be trimmed if it was slow or it could |
| 78 // become fast. | 78 // become fast. |
| 79 LayoutDescriptor* Trim(Heap* heap, Map* map, DescriptorArray* descriptors, | 79 LayoutDescriptor* Trim(Heap* heap, Map* map, DescriptorArray* descriptors, |
| 80 int num_descriptors); | 80 int num_descriptors); |
| 81 | 81 |
| 82 #ifdef OBJECT_PRINT | 82 #ifdef OBJECT_PRINT |
| 83 // For our gdb macros, we should perhaps change these in the future. | 83 // For our gdb macros, we should perhaps change these in the future. |
| 84 void Print(); | 84 void Print(); |
| 85 | 85 |
| 86 void ShortPrint(std::ostream& os); |
| 86 void Print(std::ostream& os); // NOLINT | 87 void Print(std::ostream& os); // NOLINT |
| 87 #endif | 88 #endif |
| 88 | 89 |
| 89 // Capacity of layout descriptors in bits. | 90 // Capacity of layout descriptors in bits. |
| 90 V8_INLINE int capacity(); | 91 V8_INLINE int capacity(); |
| 91 | 92 |
| 92 static Handle<LayoutDescriptor> NewForTesting(Isolate* isolate, int length); | 93 static Handle<LayoutDescriptor> NewForTesting(Isolate* isolate, int length); |
| 93 LayoutDescriptor* SetTaggedForTesting(int field_index, bool tagged); | 94 LayoutDescriptor* SetTaggedForTesting(int field_index, bool tagged); |
| 94 | 95 |
| 95 private: | 96 private: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 151 |
| 151 private: | 152 private: |
| 152 bool all_fields_tagged_; | 153 bool all_fields_tagged_; |
| 153 int header_size_; | 154 int header_size_; |
| 154 LayoutDescriptor* layout_descriptor_; | 155 LayoutDescriptor* layout_descriptor_; |
| 155 }; | 156 }; |
| 156 } // namespace internal | 157 } // namespace internal |
| 157 } // namespace v8 | 158 } // namespace v8 |
| 158 | 159 |
| 159 #endif // V8_LAYOUT_DESCRIPTOR_H_ | 160 #endif // V8_LAYOUT_DESCRIPTOR_H_ |
| OLD | NEW |