summaryrefslogtreecommitdiffstats
path: root/lang/v8-devel/files/patch-src-heap-snapshot-generator.cc
blob: bc865f33ded66dc2246e25ce88f6dc31dcf356b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- src/heap-snapshot-generator.cc.orig	2014-06-03 08:52:11 UTC
+++ src/heap-snapshot-generator.cc
@@ -410,8 +410,8 @@ bool HeapObjectsMap::MoveObject(Address 
     // object is migrated.
     if (FLAG_heap_profiler_trace_objects) {
       PrintF("Move object from %p to %p old size %6d new size %6d\n",
-             from,
-             to,
+             reinterpret_cast<void*>(from),
+             reinterpret_cast<void*>(to),
              entries_.at(from_entry_info_index).size,
              object_size);
     }
@@ -451,7 +451,7 @@ SnapshotObjectId HeapObjectsMap::FindOrA
     entry_info.accessed = accessed;
     if (FLAG_heap_profiler_trace_objects) {
       PrintF("Update object size : %p with old size %d and new size %d\n",
-             addr,
+             reinterpret_cast<void*>(addr),
              entry_info.size,
              size);
     }
@@ -486,9 +486,9 @@ void HeapObjectsMap::UpdateHeapObjectsMa
     FindOrAddEntry(obj->address(), obj->Size());
     if (FLAG_heap_profiler_trace_objects) {
       PrintF("Update object      : %p %6d. Next address is %p\n",
-             obj->address(),
+             reinterpret_cast<void*>(obj->address()),
              obj->Size(),
-             obj->address() + obj->Size());
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
     }
   }
   RemoveDeadEntries();
@@ -516,20 +516,20 @@ struct HeapObjectInfo {
   void Print() const {
     if (expected_size == 0) {
       PrintF("Untracked object   : %p %6d. Next address is %p\n",
-             obj->address(),
+             reinterpret_cast<void*>(obj->address()),
              obj->Size(),
-             obj->address() + obj->Size());
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
     } else if (obj->Size() != expected_size) {
       PrintF("Wrong size %6d: %p %6d. Next address is %p\n",
              expected_size,
-             obj->address(),
+             reinterpret_cast<void*>(obj->address()),
              obj->Size(),
-             obj->address() + obj->Size());
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
     } else {
       PrintF("Good object      : %p %6d. Next address is %p\n",
-             obj->address(),
+             reinterpret_cast<void*>(obj->address()),
              expected_size,
-             obj->address() + obj->Size());
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
     }
   }
 };
OpenPOWER on IntegriCloud