OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_SNAPSHOT_GENERATOR_H_ | 5 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_H_ |
6 #define V8_HEAP_SNAPSHOT_GENERATOR_H_ | 6 #define V8_HEAP_SNAPSHOT_GENERATOR_H_ |
7 | 7 |
8 #include "src/profile-generator-inl.h" | 8 #include "src/profile-generator-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 template<V8HeapExplorer::ExtractReferencesMethod extractor> | 364 template<V8HeapExplorer::ExtractReferencesMethod extractor> |
365 bool IterateAndExtractSinglePass(); | 365 bool IterateAndExtractSinglePass(); |
366 | 366 |
367 bool ExtractReferencesPass1(int entry, HeapObject* obj); | 367 bool ExtractReferencesPass1(int entry, HeapObject* obj); |
368 bool ExtractReferencesPass2(int entry, HeapObject* obj); | 368 bool ExtractReferencesPass2(int entry, HeapObject* obj); |
369 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); | 369 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); |
370 void ExtractJSObjectReferences(int entry, JSObject* js_obj); | 370 void ExtractJSObjectReferences(int entry, JSObject* js_obj); |
371 void ExtractStringReferences(int entry, String* obj); | 371 void ExtractStringReferences(int entry, String* obj); |
372 void ExtractSymbolReferences(int entry, Symbol* symbol); | 372 void ExtractSymbolReferences(int entry, Symbol* symbol); |
373 void ExtractJSCollectionReferences(int entry, JSCollection* collection); | |
374 void ExtractJSWeakCollectionReferences(int entry, | 373 void ExtractJSWeakCollectionReferences(int entry, |
375 JSWeakCollection* collection); | 374 JSWeakCollection* collection); |
376 void ExtractContextReferences(int entry, Context* context); | 375 void ExtractContextReferences(int entry, Context* context); |
377 void ExtractMapReferences(int entry, Map* map); | 376 void ExtractMapReferences(int entry, Map* map); |
378 void ExtractSharedFunctionInfoReferences(int entry, | 377 void ExtractSharedFunctionInfoReferences(int entry, |
379 SharedFunctionInfo* shared); | 378 SharedFunctionInfo* shared); |
380 void ExtractScriptReferences(int entry, Script* script); | 379 void ExtractScriptReferences(int entry, Script* script); |
381 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors); | 380 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors); |
382 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); | 381 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); |
383 void ExtractCodeReferences(int entry, Code* code); | 382 void ExtractCodeReferences(int entry, Code* code); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 friend class HeapSnapshotJSONSerializerEnumerator; | 616 friend class HeapSnapshotJSONSerializerEnumerator; |
618 friend class HeapSnapshotJSONSerializerIterator; | 617 friend class HeapSnapshotJSONSerializerIterator; |
619 | 618 |
620 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 619 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
621 }; | 620 }; |
622 | 621 |
623 | 622 |
624 } } // namespace v8::internal | 623 } } // namespace v8::internal |
625 | 624 |
626 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 625 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |