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

(-)lang/v8/files/patch-src__checks.h (+11 lines)
Line 0 Link Here
1
--- src/checks.h.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/checks.h	2015-02-20 23:52:17.355690000 +0100
3
@@ -248,7 +248,7 @@
4
 #define STATIC_CHECK(test)                                                    \
5
   typedef                                                                     \
6
     StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>((test))>)> \
7
-    SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__)
8
+    SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) __attribute__((__unused__))
9
 
10
 
11
 extern bool FLAG_enable_slow_asserts;
(-)lang/v8/files/patch-src__deoptimizer.cc (+29 lines)
Line 0 Link Here
1
--- src/deoptimizer.cc.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/deoptimizer.cc	2015-08-20 22:31:07.149576000 +0200
3
@@ -1392,7 +1392,7 @@ void Deoptimizer::MaterializeHeapObjects
4
       PrintF("Materializing a new heap number %p [%e] in slot %p\n",
5
              reinterpret_cast<void*>(*num),
6
              d.value(),
7
-             d.slot_address());
8
+             reinterpret_cast<void*>(d.slot_address()));
9
     }
10
     Memory::Object_at(d.slot_address()) = *num;
11
   }
12
@@ -1474,7 +1474,7 @@ void Deoptimizer::MaterializeHeapNumbers
13
                "for parameter slot #%d\n",
14
                reinterpret_cast<void*>(*num),
15
                d.value(),
16
-               d.slot_address(),
17
+               reinterpret_cast<void*>(d.slot_address()),
18
                index);
19
       }
20
 
21
@@ -1490,7 +1490,7 @@ void Deoptimizer::MaterializeHeapNumbers
22
                "for expression slot #%d\n",
23
                reinterpret_cast<void*>(*num),
24
                d.value(),
25
-               d.slot_address(),
26
+               reinterpret_cast<void*>(d.slot_address()),
27
                index);
28
       }
29
 
(-)lang/v8/files/patch-src__ia32__code-stubs-ia32.cc (+11 lines)
Line 0 Link Here
1
--- src/ia32/code-stubs-ia32.cc.orig	2015-08-20 22:50:31.332944000 +0200
2
+++ src/ia32/code-stubs-ia32.cc	2015-08-20 22:50:44.120200000 +0200
3
@@ -5650,7 +5650,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/files/patch-src__ia32__disasm-ia32.cc (+11 lines)
Line 0 Link Here
1
--- src/ia32/disasm-ia32.cc.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/ia32/disasm-ia32.cc	2015-08-20 22:31:07.152077000 +0200
3
@@ -1707,7 +1707,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/files/patch-src__ia32__ic-ia32.cc (+12 lines)
Line 0 Link Here
1
--- src/ia32/ic-ia32.cc.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/ia32/ic-ia32.cc	2015-08-20 22:31:07.154542000 +0200
3
@@ -1657,7 +1657,8 @@ void PatchInlinedSmiCode(Address address
4
   int8_t delta = *reinterpret_cast<int8_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/files/patch-src__liveedit.cc (+11 lines)
Line 0 Link Here
1
--- src/liveedit.cc.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/liveedit.cc	2015-08-20 22:44:28.910697000 +0200
3
@@ -203,7 +203,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/files/patch-src__objects.h (+22 lines)
Line 0 Link Here
1
--- src/objects.h.orig	2013-05-01 14:56:29.000000000 +0200
2
+++ src/objects.h	2015-08-20 22:47:02.665655000 +0200
3
@@ -5573,7 +5573,7 @@ class Map: public HeapObject {
4
   static const int kElementsKindBitCount = 5;
5
 
6
   // Derived values from bit field 2
7
-  static const int kElementsKindMask = (-1 << kElementsKindShift) &
8
+  static const int kElementsKindMask = -(1 << kElementsKindShift) &
9
       ((1 << (kElementsKindShift + kElementsKindBitCount)) - 1);
10
   static const int8_t kMaximumBitField2FastElementValue = static_cast<int8_t>(
11
       (FAST_ELEMENTS + 1) << Map::kElementsKindShift) - 1;
12
@@ -7580,8 +7580,8 @@ class Name: public HeapObject {
13
   STATIC_CHECK(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1));
14
 
15
   static const int kContainsCachedArrayIndexMask =
16
-      (~kMaxCachedArrayIndexLength << kArrayIndexHashLengthShift) |
17
-      kIsNotArrayIndexMask;
18
+      (~static_cast<unsigned>(kMaxCachedArrayIndexLength) <<
19
+      kArrayIndexHashLengthShift) | kIsNotArrayIndexMask;
20
 
21
   // Value of empty hash field indicating that the hash is not computed.
22
   static const int kEmptyHashField =

Return to bug 202530