| 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 <math.h> | 
|  | 9 | 
| 8 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" | 
| 9 #include "src/heap/objects-visiting.h" | 11 #include "src/heap/objects-visiting.h" | 
| 10 #include "src/objects.h" | 12 #include "src/objects.h" | 
| 11 | 13 | 
| 12 namespace v8 { | 14 namespace v8 { | 
| 13 namespace internal { | 15 namespace internal { | 
| 14 | 16 | 
| 15 class ObjectStats { | 17 class ObjectStats { | 
| 16  public: | 18  public: | 
| 17   explicit ObjectStats(Heap* heap) : heap_(heap) { ClearObjectStats(); } | 19   explicit ObjectStats(Heap* heap) : heap_(heap) { ClearObjectStats(); } | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 124   static void RecordJSObjectDetails(ObjectStats* stats, Heap* heap, | 126   static void RecordJSObjectDetails(ObjectStats* stats, Heap* heap, | 
| 125                                     JSObject* object); | 127                                     JSObject* object); | 
| 126   static void RecordJSWeakCollectionDetails(ObjectStats* stats, Heap* heap, | 128   static void RecordJSWeakCollectionDetails(ObjectStats* stats, Heap* heap, | 
| 127                                             JSWeakCollection* obj); | 129                                             JSWeakCollection* obj); | 
| 128 }; | 130 }; | 
| 129 | 131 | 
| 130 }  // namespace internal | 132 }  // namespace internal | 
| 131 }  // namespace v8 | 133 }  // namespace v8 | 
| 132 | 134 | 
| 133 #endif  // V8_HEAP_OBJECT_STATS_H_ | 135 #endif  // V8_HEAP_OBJECT_STATS_H_ | 
| OLD | NEW | 
|---|