| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_HEAP_OBJECT_STATS_H_ | 5 #ifndef V8_HEAP_OBJECT_STATS_H_ |
| 6 #define V8_HEAP_OBJECT_STATS_H_ | 6 #define V8_HEAP_OBJECT_STATS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "src/base/ieee754.h" | 10 #include "src/base/ieee754.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 private: | 141 private: |
| 142 class CompilationCacheTableVisitor; | 142 class CompilationCacheTableVisitor; |
| 143 | 143 |
| 144 void RecordBytecodeArrayDetails(BytecodeArray* obj); | 144 void RecordBytecodeArrayDetails(BytecodeArray* obj); |
| 145 void RecordCodeDetails(Code* code); | 145 void RecordCodeDetails(Code* code); |
| 146 void RecordFixedArrayDetails(FixedArray* array); | 146 void RecordFixedArrayDetails(FixedArray* array); |
| 147 void RecordJSCollectionDetails(JSObject* obj); | 147 void RecordJSCollectionDetails(JSObject* obj); |
| 148 void RecordJSFunctionDetails(JSFunction* function); | 148 void RecordJSFunctionDetails(JSFunction* function); |
| 149 void RecordJSObjectDetails(JSObject* object); | 149 void RecordJSObjectDetails(JSObject* object); |
| 150 void RecordJSWeakCollectionDetails(JSWeakCollection* obj); | 150 void RecordJSWeakCollectionDetails(JSWeakCollection* obj); |
| 151 void RecordJSWeakRefDetails(JSWeakRef* obj); |
| 151 void RecordMapDetails(Map* map); | 152 void RecordMapDetails(Map* map); |
| 152 void RecordScriptDetails(Script* obj); | 153 void RecordScriptDetails(Script* obj); |
| 153 void RecordTemplateInfoDetails(TemplateInfo* obj); | 154 void RecordTemplateInfoDetails(TemplateInfo* obj); |
| 154 void RecordSharedFunctionInfoDetails(SharedFunctionInfo* sfi); | 155 void RecordSharedFunctionInfoDetails(SharedFunctionInfo* sfi); |
| 155 | 156 |
| 156 bool RecordFixedArrayHelper(HeapObject* parent, FixedArray* array, | 157 bool RecordFixedArrayHelper(HeapObject* parent, FixedArray* array, |
| 157 int subtype, size_t overhead); | 158 int subtype, size_t overhead); |
| 158 void RecursivelyRecordFixedArrayHelper(HeapObject* parent, FixedArray* array, | 159 void RecursivelyRecordFixedArrayHelper(HeapObject* parent, FixedArray* array, |
| 159 int subtype); | 160 int subtype); |
| 160 template <class HashTable> | 161 template <class HashTable> |
| 161 void RecordHashTableHelper(HeapObject* parent, HashTable* array, int subtype); | 162 void RecordHashTableHelper(HeapObject* parent, HashTable* array, int subtype); |
| 162 Heap* heap_; | 163 Heap* heap_; |
| 163 ObjectStats* stats_; | 164 ObjectStats* stats_; |
| 164 | 165 |
| 165 friend class ObjectStatsCollector::CompilationCacheTableVisitor; | 166 friend class ObjectStatsCollector::CompilationCacheTableVisitor; |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace internal | 169 } // namespace internal |
| 169 } // namespace v8 | 170 } // namespace v8 |
| 170 | 171 |
| 171 #endif // V8_HEAP_OBJECT_STATS_H_ | 172 #endif // V8_HEAP_OBJECT_STATS_H_ |
| OLD | NEW |