View | Details | Raw Unified | Return to bug 202534
Collapse All | Expand All

(-)lang/v8-devel/files/patch-src__allocation-tracker.cc (+13 lines)
Line 0 Link Here
1
--- src/allocation-tracker.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/allocation-tracker.cc	2015-08-20 23:11:25.591304000 +0200
3
@@ -152,8 +152,8 @@ void AddressToTraceMap::Clear() {
4
 void AddressToTraceMap::Print() {
5
   PrintF("[AddressToTraceMap (%" V8PRIuPTR "): \n", ranges_.size());
6
   for (RangeMap::iterator it = ranges_.begin(); it != ranges_.end(); ++it) {
7
-    PrintF("[%p - %p] => %u\n", it->second.start, it->first,
8
-        it->second.trace_node_id);
9
+    PrintF("[%p - %p] => %u\n", reinterpret_cast<void*>(it->second.start),
10
+        reinterpret_cast<void*>(it->first), it->second.trace_node_id);
11
   }
12
   PrintF("]\n");
13
 }
(-)lang/v8-devel/files/patch-src__deoptimizer.cc (+29 lines)
Line 0 Link Here
1
--- src/deoptimizer.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/deoptimizer.cc	2015-08-20 23:13:27.601778000 +0200
3
@@ -1920,7 +1920,7 @@ void Deoptimizer::MaterializeHeapObjects
4
              "Materialized a new heap number %p [%e] in slot %p\n",
5
              reinterpret_cast<void*>(*num),
6
              d.value(),
7
-             d.destination());
8
+             reinterpret_cast<void*>(d.destination()));
9
     }
10
     Memory::Object_at(d.destination()) = *num;
11
   }
12
@@ -2017,7 +2017,7 @@ void Deoptimizer::MaterializeHeapNumbers
13
                "for parameter slot #%d\n",
14
                reinterpret_cast<void*>(*num),
15
                d.value(),
16
-               d.destination(),
17
+               reinterpret_cast<void*>(d.destination()),
18
                index);
19
       }
20
 
21
@@ -2034,7 +2034,7 @@ void Deoptimizer::MaterializeHeapNumbers
22
                "for expression slot #%d\n",
23
                reinterpret_cast<void*>(*num),
24
                d.value(),
25
-               d.destination(),
26
+               reinterpret_cast<void*>(d.destination()),
27
                index);
28
       }
29
 
(-)lang/v8-devel/files/patch-src__heap-snapshot-generator.cc (+61 lines)
Line 0 Link Here
1
--- src/heap-snapshot-generator.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/heap-snapshot-generator.cc	2015-08-20 23:15:47.676226000 +0200
3
@@ -410,8 +410,8 @@ bool HeapObjectsMap::MoveObject(Address 
4
     // object is migrated.
5
     if (FLAG_heap_profiler_trace_objects) {
6
       PrintF("Move object from %p to %p old size %6d new size %6d\n",
7
-             from,
8
-             to,
9
+             reinterpret_cast<void*>(from),
10
+             reinterpret_cast<void*>(to),
11
              entries_.at(from_entry_info_index).size,
12
              object_size);
13
     }
14
@@ -451,7 +451,7 @@ SnapshotObjectId HeapObjectsMap::FindOrA
15
     entry_info.accessed = accessed;
16
     if (FLAG_heap_profiler_trace_objects) {
17
       PrintF("Update object size : %p with old size %d and new size %d\n",
18
-             addr,
19
+             reinterpret_cast<void*>(addr),
20
              entry_info.size,
21
              size);
22
     }
23
@@ -486,9 +486,9 @@ void HeapObjectsMap::UpdateHeapObjectsMa
24
     FindOrAddEntry(obj->address(), obj->Size());
25
     if (FLAG_heap_profiler_trace_objects) {
26
       PrintF("Update object      : %p %6d. Next address is %p\n",
27
-             obj->address(),
28
+             reinterpret_cast<void*>(obj->address()),
29
              obj->Size(),
30
-             obj->address() + obj->Size());
31
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
32
     }
33
   }
34
   RemoveDeadEntries();
35
@@ -516,20 +516,20 @@ struct HeapObjectInfo {
36
   void Print() const {
37
     if (expected_size == 0) {
38
       PrintF("Untracked object   : %p %6d. Next address is %p\n",
39
-             obj->address(),
40
+             reinterpret_cast<void*>(obj->address()),
41
              obj->Size(),
42
-             obj->address() + obj->Size());
43
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
44
     } else if (obj->Size() != expected_size) {
45
       PrintF("Wrong size %6d: %p %6d. Next address is %p\n",
46
              expected_size,
47
-             obj->address(),
48
+             reinterpret_cast<void*>(obj->address()),
49
              obj->Size(),
50
-             obj->address() + obj->Size());
51
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
52
     } else {
53
       PrintF("Good object      : %p %6d. Next address is %p\n",
54
-             obj->address(),
55
+             reinterpret_cast<void*>(obj->address()),
56
              expected_size,
57
-             obj->address() + obj->Size());
58
+             reinterpret_cast<void*>(obj->address() + obj->Size()));
59
     }
60
   }
61
 };
(-)lang/v8-devel/files/patch-src__ia32__code-stubs-ia32.cc (+11 lines)
Line 0 Link Here
1
--- src/ia32/code-stubs-ia32.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/ia32/code-stubs-ia32.cc	2015-08-20 23:19:17.568999000 +0200
3
@@ -3143,7 +3143,7 @@ void StringCharFromCodeGenerator::Genera
4
   ASSERT(IsPowerOf2(String::kMaxOneByteCharCode + 1));
5
   __ test(code_,
6
           Immediate(kSmiTagMask |
7
-                    ((~String::kMaxOneByteCharCode) << kSmiTagSize)));
8
+                    ((~String::kMaxOneByteCharCodeU) << kSmiTagSize)));
9
   __ j(not_zero, &slow_case_);
10
 
11
   Factory* factory = masm->isolate()->factory();
(-)lang/v8-devel/files/patch-src__ia32__disasm-ia32.cc (+11 lines)
Line 0 Link Here
1
--- src/ia32/disasm-ia32.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/ia32/disasm-ia32.cc	2015-08-20 23:19:34.908416000 +0200
3
@@ -1743,7 +1743,7 @@ int Disassembler::ConstantPoolSizeAt(byt
4
     buffer[0] = '\0';
5
     byte* prev_pc = pc;
6
     pc += d.InstructionDecode(buffer, pc);
7
-    fprintf(f, "%p", prev_pc);
8
+    fprintf(f, "%p", reinterpret_cast<void*>(prev_pc));
9
     fprintf(f, "    ");
10
 
11
     for (byte* bp = prev_pc; bp < pc; bp++) {
(-)lang/v8-devel/files/patch-src__ia32__ic-ia32.cc (+12 lines)
Line 0 Link Here
1
--- src/ia32/ic-ia32.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/ia32/ic-ia32.cc	2015-08-20 23:20:22.370410000 +0200
3
@@ -1262,7 +1262,8 @@ void PatchInlinedSmiCode(Address address
4
   uint8_t delta = *reinterpret_cast<uint8_t*>(delta_address);
5
   if (FLAG_trace_ic) {
6
     PrintF("[  patching ic at %p, test=%p, delta=%d\n",
7
-           address, test_instruction_address, delta);
8
+           reinterpret_cast<void*>(address),
9
+           reinterpret_cast<void*>(test_instruction_address), delta);
10
   }
11
 
12
   // Patch with a short conditional jump. Enabling means switching from a short
(-)lang/v8-devel/files/patch-src__liveedit.cc (+11 lines)
Line 0 Link Here
1
--- src/liveedit.cc.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/liveedit.cc	2015-08-20 23:16:49.084087000 +0200
3
@@ -174,7 +174,7 @@ class Differencer {
4
 
5
   static const int kDirectionSizeBits = 2;
6
   static const int kDirectionMask = (1 << kDirectionSizeBits) - 1;
7
-  static const int kEmptyCellValue = -1 << kDirectionSizeBits;
8
+  static const int kEmptyCellValue = -(1 << kDirectionSizeBits);
9
 
10
   // This method only holds static assert statement (unfortunately you cannot
11
   // place one in class scope).
(-)lang/v8-devel/files/patch-src__objects.h (+13 lines)
Line 0 Link Here
1
--- src/objects.h.orig	2014-06-03 10:52:11.000000000 +0200
2
+++ src/objects.h	2015-08-20 23:09:45.566923000 +0200
3
@@ -8824,8 +8824,8 @@ class Name: public HeapObject {
4
   STATIC_ASSERT(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1));
5
 
6
   static const unsigned int kContainsCachedArrayIndexMask =
7
-      (~kMaxCachedArrayIndexLength << ArrayIndexLengthBits::kShift) |
8
-      kIsNotArrayIndexMask;
9
+      (~static_cast<unsigned>(kMaxCachedArrayIndexLength)
10
+      << ArrayIndexLengthBits::kShift) | kIsNotArrayIndexMask;
11
 
12
   // Value of empty hash field indicating that the hash is not computed.
13
   static const int kEmptyHashField =

Return to bug 202534