WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187292
FunctionTraits: Make cCallArity() constant on 32-bits.
https://bugs.webkit.org/show_bug.cgi?id=187292
Summary
FunctionTraits: Make cCallArity() constant on 32-bits.
Guillaume Emont
Reported
2018-07-03 08:10:04 PDT
On X86, in CCallHelpers.h we have a static_assert that uses cCallArity(), so it needs to be constant to avoid a compilation error.
Attachments
Patch
(2.00 KB, patch)
2018-07-03 08:24 PDT
,
Guillaume Emont
no flags
Details
Formatted Diff
Diff
Patch
(2.02 KB, patch)
2018-07-03 10:17 PDT
,
Guillaume Emont
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews205 for win-future
(12.79 MB, application/zip)
2018-07-03 12:13 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews122 for ios-simulator-wk2
(5.39 MB, application/zip)
2018-07-03 12:16 PDT
,
EWS Watchlist
no flags
Details
Patch
(1.56 KB, patch)
2018-07-04 05:21 PDT
,
Guillaume Emont
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Guillaume Emont
Comment 1
2018-07-03 08:24:06 PDT
Created
attachment 344189
[details]
Patch Patch fixing the issue using std::enable_if_t function parameters instead of a runtime if.
Guillaume Emont
Comment 2
2018-07-03 10:17:45 PDT
Created
attachment 344194
[details]
Patch New version with a message on static_assert to make clang happy.
EWS Watchlist
Comment 3
2018-07-03 12:13:15 PDT
Comment on
attachment 344194
[details]
Patch
Attachment 344194
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8426224
New failing tests: http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html
EWS Watchlist
Comment 4
2018-07-03 12:13:27 PDT
Created
attachment 344203
[details]
Archive of layout-test-results from ews205 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews205 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
EWS Watchlist
Comment 5
2018-07-03 12:16:06 PDT
Comment on
attachment 344194
[details]
Patch
Attachment 344194
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/8425977
New failing tests: animations/needs-layout.html
EWS Watchlist
Comment 6
2018-07-03 12:16:08 PDT
Created
attachment 344204
[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.4
Guillaume Emont
Comment 7
2018-07-04 02:52:13 PDT
EWS failures look like they are unrelated to the change.
Yusuke Suzuki
Comment 8
2018-07-04 03:52:22 PDT
Comment on
attachment 344194
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=344194&action=review
> Source/WTF/wtf/FunctionTraits.h:-45 > - ASSERT(sizeof(T) <= 4);
I think just changing this to `static_assert(sizeof(T) == 8 || sizeof(T) <= 4, "")` is enough since we have relaxed constexpr.
Guillaume Emont
Comment 9
2018-07-04 04:13:02 PDT
(In reply to Yusuke Suzuki from
comment #8
)
> Comment on
attachment 344194
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=344194&action=review
> > > Source/WTF/wtf/FunctionTraits.h:-45 > > - ASSERT(sizeof(T) <= 4); > > I think just changing this to `static_assert(sizeof(T) == 8 || sizeof(T) <= > 4, "")` is enough since we have relaxed constexpr.
Indeed it is much simpler. I am sorry I did not know about relaxed constexpr. New patch upcoming.
Guillaume Emont
Comment 10
2018-07-04 05:21:41 PDT
Created
attachment 344281
[details]
Patch New simpler version taking advantage of relaxed constexpr.
Yusuke Suzuki
Comment 11
2018-07-04 05:27:31 PDT
Comment on
attachment 344281
[details]
Patch r=me
WebKit Commit Bot
Comment 12
2018-07-04 05:54:54 PDT
Comment on
attachment 344281
[details]
Patch Clearing flags on attachment: 344281 Committed
r233504
: <
https://trac.webkit.org/changeset/233504
>
WebKit Commit Bot
Comment 13
2018-07-04 05:54:56 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14
2018-07-04 05:56:39 PDT
<
rdar://problem/41817774
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug