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

Side by Side Diff: src/heap/heap.h

Issue 2379623002: Make UsingEmbedderHeapTracer nicer (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 void RegisterReservationsForBlackAllocation(Reservation* reservations); 1198 void RegisterReservationsForBlackAllocation(Reservation* reservations);
1199 1199
1200 IncrementalMarking* incremental_marking() { return incremental_marking_; } 1200 IncrementalMarking* incremental_marking() { return incremental_marking_; }
1201 1201
1202 // =========================================================================== 1202 // ===========================================================================
1203 // Embedder heap tracer support. ============================================= 1203 // Embedder heap tracer support. =============================================
1204 // =========================================================================== 1204 // ===========================================================================
1205 1205
1206 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); 1206 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer);
1207 1207
1208 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer(); } 1208 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer() != nullptr; }
1209 1209
1210 void TracePossibleWrapper(JSObject* js_object); 1210 void TracePossibleWrapper(JSObject* js_object);
1211 1211
1212 void RegisterExternallyReferencedObject(Object** object); 1212 void RegisterExternallyReferencedObject(Object** object);
1213 1213
1214 void RegisterWrappersWithEmbedderHeapTracer(); 1214 void RegisterWrappersWithEmbedderHeapTracer();
1215 1215
1216 // In order to avoid running out of memory we force tracing wrappers if there 1216 // In order to avoid running out of memory we force tracing wrappers if there
1217 // are too many of them. 1217 // are too many of them.
1218 bool RequiresImmediateWrapperProcessing(); 1218 bool RequiresImmediateWrapperProcessing();
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2638 } 2638 }
2639 2639
2640 private: 2640 private:
2641 Heap* heap_; 2641 Heap* heap_;
2642 }; 2642 };
2643 2643
2644 } // namespace internal 2644 } // namespace internal
2645 } // namespace v8 2645 } // namespace v8
2646 2646
2647 #endif // V8_HEAP_HEAP_H_ 2647 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698