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

Unified Diff: src/heap-profiler.h

Issue 101763003: Replace 'operator*' with explicit 'get' method on SmartPointer (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reupload to make rietveld happy Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gdb-jit.cc ('k') | src/heap-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-profiler.h
diff --git a/src/heap-profiler.h b/src/heap-profiler.h
index 3dd5b4d0e7d031034836f90c163a824236cb7924..6d15868db1a11d07dc20c3c1bd9cf4c367c4fc48 100644
--- a/src/heap-profiler.h
+++ b/src/heap-profiler.h
@@ -55,9 +55,11 @@ class HeapProfiler {
void StartHeapObjectsTracking(bool track_allocations);
void StopHeapObjectsTracking();
- AllocationTracker* allocation_tracker() { return *allocation_tracker_; }
- HeapObjectsMap* heap_object_map() { return *ids_; }
- StringsStorage* names() { return *names_; }
+ AllocationTracker* allocation_tracker() const {
+ return allocation_tracker_.get();
+ }
+ HeapObjectsMap* heap_object_map() const { return ids_.get(); }
+ StringsStorage* names() const { return names_.get(); }
SnapshotObjectId PushHeapObjectsStats(OutputStream* stream);
int GetSnapshotsCount();
@@ -80,7 +82,9 @@ class HeapProfiler {
void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info);
bool is_tracking_object_moves() const { return is_tracking_object_moves_; }
- bool is_tracking_allocations() { return !allocation_tracker_.is_empty(); }
+ bool is_tracking_allocations() const {
+ return !allocation_tracker_.is_empty();
+ }
Handle<HeapObject> FindHeapObjectById(SnapshotObjectId id);
« no previous file with comments | « src/gdb-jit.cc ('k') | src/heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698