Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/heap/object-stats.h

Issue 2915793002: [api] Prototype WeakRef implementation
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/object-stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/object-stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698