Bug 122267 - [EFL] [DEBUG] JavaScriptCore fails to build
Summary: [EFL] [DEBUG] JavaScriptCore fails to build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Correia (qrwteyrutiyoup)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-03 06:23 PDT by Rob Płóciennik
Modified: 2013-10-03 10:11 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.46 KB, patch)
2013-10-03 07:24 PDT, Sergio Correia (qrwteyrutiyoup)
no flags Details | Formatted Diff | Diff
Patch (1.47 KB, patch)
2013-10-03 09:35 PDT, Sergio Correia (qrwteyrutiyoup)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Płóciennik 2013-10-03 06:23:40 PDT
Build fails due to an expression containing comparison between signed and unsigned integer.

Source/JavaScriptCore/llint/LLIntData.cpp: In static member function ‘static void JSC::LLInt::Data::performAssertions(JSC::VM&)’:
Source/JavaScriptCore/llint/LLIntData.cpp:128:5: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
Comment 1 Sergio Correia (qrwteyrutiyoup) 2013-10-03 07:24:00 PDT
Created attachment 213244 [details]
Patch
Comment 2 Rob Płóciennik 2013-10-03 07:34:46 PDT
How about changing it to:

ASSERT(MarkedBlock::blockMask == ~static_cast<decltype(MarkedBlock::blockMask)>(0xffff));
Comment 3 Sergio Correia (qrwteyrutiyoup) 2013-10-03 07:48:42 PDT
(In reply to comment #2)
> How about changing it to:
> 
> ASSERT(MarkedBlock::blockMask == ~static_cast<decltype(MarkedBlock::blockMask)>(0xffff));

Nice suggestion. I am going to update the patch.
Comment 4 Sergio Correia (qrwteyrutiyoup) 2013-10-03 07:53:14 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > How about changing it to:
> > 
> > ASSERT(MarkedBlock::blockMask == ~static_cast<decltype(MarkedBlock::blockMask)>(0xffff));
> 
> Nice suggestion. I am going to update the patch.

Michael, I saw you have just r+'ed it; should I update the patch to apply Rob's suggestion?
Comment 5 Michael Saboff 2013-10-03 08:07:52 PDT
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > How about changing it to:
> > > 
> > > ASSERT(MarkedBlock::blockMask == ~static_cast<decltype(MarkedBlock::blockMask)>(0xffff));
> > 
> > Nice suggestion. I am going to update the patch.
> 
> Michael, I saw you have just r+'ed it; should I update the patch to apply Rob's suggestion?

Sure.  I just CQ-.  Maybe that stopped the bots.
Comment 6 Sergio Correia (qrwteyrutiyoup) 2013-10-03 09:35:33 PDT
Created attachment 213271 [details]
Patch

Updated as per Rob's suggestion.
Comment 7 WebKit Commit Bot 2013-10-03 10:11:28 PDT
Comment on attachment 213271 [details]
Patch

Clearing flags on attachment: 213271

Committed r156837: <http://trac.webkit.org/changeset/156837>
Comment 8 WebKit Commit Bot 2013-10-03 10:11:30 PDT
All reviewed patches have been landed.  Closing bug.