Bug 203115

Summary: Use constexpr in more places and remove some unnecessary external linkage.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, calvaris, cdumez, cmarcelo, dbates, dino, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, hi, jamesr, joepeck, keith_miller, kondapallykalyan, luiz, mmaxfield, msaboff, pdr, philipj, saam, sabouhallawa, schenney, sergio, tonikitoo, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch.
none
proposed patch. ysuzuki: review+, ews-watchlist: commit-queue-

Mark Lam
Reported 2019-10-17 11:19:12 PDT
...
Attachments
proposed patch. (46.93 KB, patch)
2019-10-17 11:46 PDT, Mark Lam
no flags
proposed patch. (47.32 KB, patch)
2019-10-17 11:58 PDT, Mark Lam
ysuzuki: review+
ews-watchlist: commit-queue-
Mark Lam
Comment 1 2019-10-17 11:46:20 PDT
Created attachment 381209 [details] proposed patch.
Mark Lam
Comment 2 2019-10-17 11:58:25 PDT
Created attachment 381211 [details] proposed patch.
EWS Watchlist
Comment 3 2019-10-17 14:22:19 PDT
Comment on attachment 381211 [details] proposed patch. Attachment 381211 [details] did not pass jsc-ews (mac): Output: https://webkit-queues.webkit.org/results/13144331 New failing tests: mozilla-tests.yaml/js1_5/Array/regress-101964.js.mozilla
Mark Lam
Comment 4 2019-10-17 14:58:34 PDT
(In reply to Build Bot from comment #3) > New failing tests: > mozilla-tests.yaml/js1_5/Array/regress-101964.js.mozilla This is the flaky test again. It can't possibly be related to this patch since all I'm doing is effectively changing const to constexpr.
Yusuke Suzuki
Comment 5 2019-10-17 15:03:04 PDT
Comment on attachment 381211 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=381211&action=review r=me > Source/JavaScriptCore/jit/GPRInfo.cpp:-47 > -#endif Nice.
Mark Lam
Comment 6 2019-10-17 15:20:03 PDT
Thanks for the review. Landed in r251263: <http://trac.webkit.org/r251263>.
Radar WebKit Bug Importer
Comment 7 2019-10-17 15:21:19 PDT
Daniel Bates
Comment 8 2019-10-17 20:13:43 PDT
Comment on attachment 381211 [details] proposed patch. This patch is good. The optimal solution is just use constexpr (read: not static constexpr) for all var defns as constexpr var defs have internal linkage.
Note You need to log in before you can comment on or make changes to this bug.