FreeBSD Bugzilla – Attachment 160156 Details for
Bug 202530
Fix lang/v8 build with clang 3.7.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix various warnings in lang/v8 while building with clang 3.7.0
lang__v8-fix-clang370-build-1.diff (text/plain), 9.01 KB, created by
Dimitry Andric
on 2015-08-20 21:05:01 UTC
(
hide
)
Description:
Fix various warnings in lang/v8 while building with clang 3.7.0
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-08-20 21:05:01 UTC
Size:
9.01 KB
patch
obsolete
>Index: lang/v8/files/patch-src__checks.h >=================================================================== >--- lang/v8/files/patch-src__checks.h (revision 0) >+++ lang/v8/files/patch-src__checks.h (working copy) >@@ -0,0 +1,11 @@ >+--- src/checks.h.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/checks.h 2015-02-20 23:52:17.355690000 +0100 >+@@ -248,7 +248,7 @@ >+ #define STATIC_CHECK(test) \ >+ typedef \ >+ StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>((test))>)> \ >+- SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) >++ SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) __attribute__((__unused__)) >+ >+ >+ extern bool FLAG_enable_slow_asserts; > >Property changes on: lang/v8/files/patch-src__checks.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__deoptimizer.cc >=================================================================== >--- lang/v8/files/patch-src__deoptimizer.cc (revision 0) >+++ lang/v8/files/patch-src__deoptimizer.cc (working copy) >@@ -0,0 +1,29 @@ >+--- src/deoptimizer.cc.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/deoptimizer.cc 2015-08-20 22:31:07.149576000 +0200 >+@@ -1392,7 +1392,7 @@ void Deoptimizer::MaterializeHeapObjects >+ PrintF("Materializing a new heap number %p [%e] in slot %p\n", >+ reinterpret_cast<void*>(*num), >+ d.value(), >+- d.slot_address()); >++ reinterpret_cast<void*>(d.slot_address())); >+ } >+ Memory::Object_at(d.slot_address()) = *num; >+ } >+@@ -1474,7 +1474,7 @@ void Deoptimizer::MaterializeHeapNumbers >+ "for parameter slot #%d\n", >+ reinterpret_cast<void*>(*num), >+ d.value(), >+- d.slot_address(), >++ reinterpret_cast<void*>(d.slot_address()), >+ index); >+ } >+ >+@@ -1490,7 +1490,7 @@ void Deoptimizer::MaterializeHeapNumbers >+ "for expression slot #%d\n", >+ reinterpret_cast<void*>(*num), >+ d.value(), >+- d.slot_address(), >++ reinterpret_cast<void*>(d.slot_address()), >+ index); >+ } >+ > >Property changes on: lang/v8/files/patch-src__deoptimizer.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__ia32__code-stubs-ia32.cc >=================================================================== >--- lang/v8/files/patch-src__ia32__code-stubs-ia32.cc (revision 0) >+++ lang/v8/files/patch-src__ia32__code-stubs-ia32.cc (working copy) >@@ -0,0 +1,11 @@ >+--- src/ia32/code-stubs-ia32.cc.orig 2015-08-20 22:50:31.332944000 +0200 >++++ src/ia32/code-stubs-ia32.cc 2015-08-20 22:50:44.120200000 +0200 >+@@ -5650,7 +5650,7 @@ void StringCharFromCodeGenerator::Genera >+ ASSERT(IsPowerOf2(String::kMaxOneByteCharCode + 1)); >+ __ test(code_, >+ Immediate(kSmiTagMask | >+- ((~String::kMaxOneByteCharCode) << kSmiTagSize))); >++ ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); >+ __ j(not_zero, &slow_case_); >+ >+ Factory* factory = masm->isolate()->factory(); > >Property changes on: lang/v8/files/patch-src__ia32__code-stubs-ia32.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__ia32__disasm-ia32.cc >=================================================================== >--- lang/v8/files/patch-src__ia32__disasm-ia32.cc (revision 0) >+++ lang/v8/files/patch-src__ia32__disasm-ia32.cc (working copy) >@@ -0,0 +1,11 @@ >+--- src/ia32/disasm-ia32.cc.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/ia32/disasm-ia32.cc 2015-08-20 22:31:07.152077000 +0200 >+@@ -1707,7 +1707,7 @@ int Disassembler::ConstantPoolSizeAt(byt >+ buffer[0] = '\0'; >+ byte* prev_pc = pc; >+ pc += d.InstructionDecode(buffer, pc); >+- fprintf(f, "%p", prev_pc); >++ fprintf(f, "%p", reinterpret_cast<void*>(prev_pc)); >+ fprintf(f, " "); >+ >+ for (byte* bp = prev_pc; bp < pc; bp++) { > >Property changes on: lang/v8/files/patch-src__ia32__disasm-ia32.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__ia32__ic-ia32.cc >=================================================================== >--- lang/v8/files/patch-src__ia32__ic-ia32.cc (revision 0) >+++ lang/v8/files/patch-src__ia32__ic-ia32.cc (working copy) >@@ -0,0 +1,12 @@ >+--- src/ia32/ic-ia32.cc.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/ia32/ic-ia32.cc 2015-08-20 22:31:07.154542000 +0200 >+@@ -1657,7 +1657,8 @@ void PatchInlinedSmiCode(Address address >+ int8_t delta = *reinterpret_cast<int8_t*>(delta_address); >+ if (FLAG_trace_ic) { >+ PrintF("[ patching ic at %p, test=%p, delta=%d\n", >+- address, test_instruction_address, delta); >++ reinterpret_cast<void*>(address), >++ reinterpret_cast<void*>(test_instruction_address), delta); >+ } >+ >+ // Patch with a short conditional jump. Enabling means switching from a short > >Property changes on: lang/v8/files/patch-src__ia32__ic-ia32.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__liveedit.cc >=================================================================== >--- lang/v8/files/patch-src__liveedit.cc (revision 0) >+++ lang/v8/files/patch-src__liveedit.cc (working copy) >@@ -0,0 +1,11 @@ >+--- src/liveedit.cc.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/liveedit.cc 2015-08-20 22:44:28.910697000 +0200 >+@@ -203,7 +203,7 @@ class Differencer { >+ >+ static const int kDirectionSizeBits = 2; >+ static const int kDirectionMask = (1 << kDirectionSizeBits) - 1; >+- static const int kEmptyCellValue = -1 << kDirectionSizeBits; >++ static const int kEmptyCellValue = -(1 << kDirectionSizeBits); >+ >+ // This method only holds static assert statement (unfortunately you cannot >+ // place one in class scope). > >Property changes on: lang/v8/files/patch-src__liveedit.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/v8/files/patch-src__objects.h >=================================================================== >--- lang/v8/files/patch-src__objects.h (revision 0) >+++ lang/v8/files/patch-src__objects.h (working copy) >@@ -0,0 +1,22 @@ >+--- src/objects.h.orig 2013-05-01 14:56:29.000000000 +0200 >++++ src/objects.h 2015-08-20 22:47:02.665655000 +0200 >+@@ -5573,7 +5573,7 @@ class Map: public HeapObject { >+ static const int kElementsKindBitCount = 5; >+ >+ // Derived values from bit field 2 >+- static const int kElementsKindMask = (-1 << kElementsKindShift) & >++ static const int kElementsKindMask = -(1 << kElementsKindShift) & >+ ((1 << (kElementsKindShift + kElementsKindBitCount)) - 1); >+ static const int8_t kMaximumBitField2FastElementValue = static_cast<int8_t>( >+ (FAST_ELEMENTS + 1) << Map::kElementsKindShift) - 1; >+@@ -7580,8 +7580,8 @@ class Name: public HeapObject { >+ STATIC_CHECK(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1)); >+ >+ static const int kContainsCachedArrayIndexMask = >+- (~kMaxCachedArrayIndexLength << kArrayIndexHashLengthShift) | >+- kIsNotArrayIndexMask; >++ (~static_cast<unsigned>(kMaxCachedArrayIndexLength) << >++ kArrayIndexHashLengthShift) | kIsNotArrayIndexMask; >+ >+ // Value of empty hash field indicating that the hash is not computed. >+ static const int kEmptyHashField = > >Property changes on: lang/v8/files/patch-src__objects.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202530
: 160156