Bug 187949

Summary: [JSC] Record CoW status in ArrayProfile correctly
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 187983    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews113 for mac-sierra
none
Archive of layout-test-results from ews200 for win-future
none
Patch
none
Archive of layout-test-results from ews112 for mac-sierra
none
Patch
none
Patch saam: review+

Yusuke Suzuki
Reported 2018-07-24 02:25:14 PDT
[JSC] Record CoW status in ArrayProfile
Attachments
Patch (17.81 KB, patch)
2018-07-24 02:35 PDT, Yusuke Suzuki
no flags
Patch (18.55 KB, patch)
2018-07-24 02:39 PDT, Yusuke Suzuki
no flags
Archive of layout-test-results from ews113 for mac-sierra (3.07 MB, application/zip)
2018-07-24 04:44 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews200 for win-future (12.88 MB, application/zip)
2018-07-24 05:09 PDT, EWS Watchlist
no flags
Patch (18.55 KB, patch)
2018-07-24 05:22 PDT, Yusuke Suzuki
no flags
Archive of layout-test-results from ews112 for mac-sierra (3.09 MB, application/zip)
2018-07-24 07:10 PDT, EWS Watchlist
no flags
Patch (18.66 KB, patch)
2018-07-24 09:02 PDT, Yusuke Suzuki
no flags
Patch (10.85 KB, patch)
2018-07-25 04:08 PDT, Yusuke Suzuki
saam: review+
Yusuke Suzuki
Comment 1 2018-07-24 02:35:01 PDT
Yusuke Suzuki
Comment 2 2018-07-24 02:39:48 PDT
EWS Watchlist
Comment 3 2018-07-24 04:44:37 PDT
Comment on attachment 345648 [details] Patch Attachment 345648 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/8636661 New failing tests: js/dom/dfg-ensure-non-array-array-storage-on-window.html
EWS Watchlist
Comment 4 2018-07-24 04:44:39 PDT
Created attachment 345658 [details] Archive of layout-test-results from ews113 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 5 2018-07-24 05:09:11 PDT
Comment on attachment 345648 [details] Patch Attachment 345648 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8637169 New failing tests: http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html http/tests/security/canvas-remote-read-remote-video-redirect.html
EWS Watchlist
Comment 6 2018-07-24 05:09:22 PDT
Created attachment 345662 [details] Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Yusuke Suzuki
Comment 7 2018-07-24 05:22:01 PDT
EWS Watchlist
Comment 8 2018-07-24 07:10:42 PDT
Comment on attachment 345664 [details] Patch Attachment 345664 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/8637811 New failing tests: js/dom/dfg-ensure-non-array-array-storage-on-window.html
EWS Watchlist
Comment 9 2018-07-24 07:10:43 PDT
Created attachment 345672 [details] Archive of layout-test-results from ews112 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-sierra Platform: Mac OS X 10.12.6
Yusuke Suzuki
Comment 10 2018-07-24 08:38:41 PDT
Comment on attachment 345664 [details] Patch Investigating.
Yusuke Suzuki
Comment 11 2018-07-24 09:02:33 PDT
Saam Barati
Comment 12 2018-07-24 12:23:58 PDT
Comment on attachment 345678 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345678&action=review r=me > Source/JavaScriptCore/bytecode/ArrayProfile.h:274 > + ArrayModes m_observedArrayModes { 0 }; > + unsigned m_observedIndexingModes { 0 }; I think this class would be smaller if you moved these two fields to behind StructureID
Yusuke Suzuki
Comment 13 2018-07-24 17:39:18 PDT
Comment on attachment 345678 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345678&action=review Thanks! >> Source/JavaScriptCore/bytecode/ArrayProfile.h:274 >> + unsigned m_observedIndexingModes { 0 }; > > I think this class would be smaller if you moved these two fields to behind StructureID Fixed.
Yusuke Suzuki
Comment 14 2018-07-24 17:41:15 PDT
Radar WebKit Bug Importer
Comment 15 2018-07-24 17:43:15 PDT
WebKit Commit Bot
Comment 16 2018-07-24 18:49:54 PDT
Re-opened since this is blocked by bug 187983
Yusuke Suzuki
Comment 17 2018-07-25 00:53:51 PDT
While Tools/Scripts/run-jsc-benchmark does not show this regression, sunspider benchmark driver in AWFY reproduces this regression. Investigating it.
Yusuke Suzuki
Comment 18 2018-07-25 04:04:55 PDT
It seems that Kraken desaturate's array profiles see CoW array at least once, but later, it is seeing non-CoW arrays. In this situation, specializing for non-CoW array is more profitable. Anyway, I would like to reduce the scope of this patch first. I'll upload the patch that includes indexing type fixing.
Yusuke Suzuki
Comment 19 2018-07-25 04:08:40 PDT
Yusuke Suzuki
Comment 20 2018-07-26 15:33:18 PDT
Ping?
Yusuke Suzuki
Comment 21 2018-07-27 15:00:42 PDT
Comment on attachment 345751 [details] Patch Thanks!
Yusuke Suzuki
Comment 22 2018-07-27 15:27:15 PDT
Yusuke Suzuki
Comment 23 2018-07-27 23:43:25 PDT
It fixed Kraken/crypto-ccm regression a bit.
Note You need to log in before you can comment on or make changes to this bug.