RESOLVED FIXED 132951
CSS JIT: Apply backtracking optimization to adjacent backtracking
https://bugs.webkit.org/show_bug.cgi?id=132951
Summary CSS JIT: Apply backtracking optimization to adjacent backtracking
Yusuke Suzuki
Reported 2014-05-15 05:40:50 PDT
Likewise Applying backtracking optimization done for descendant backtracking to adjacent backtracking.
Attachments
Patch (21.01 KB, patch)
2014-05-15 05:44 PDT, Yusuke Suzuki
no flags
Patch (28.81 KB, patch)
2014-05-22 12:47 PDT, Yusuke Suzuki
no flags
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 (554.92 KB, application/zip)
2014-05-22 16:53 PDT, Build Bot
no flags
Patch for landing (29.09 KB, patch)
2014-05-23 18:34 PDT, Benjamin Poulain
no flags
Yusuke Suzuki
Comment 1 2014-05-15 05:44:36 PDT
Yusuke Suzuki
Comment 2 2014-05-15 05:45:01 PDT
WIP
Benjamin Poulain
Comment 3 2014-05-16 16:45:42 PDT
Comment on attachment 231508 [details] Patch Looking into this in detail, I think the design is good. Yesterday I thought we should unify solveDescendantBacktrackingActionForChild-solveAdjacentBacktrackingActionForDirectAdjacent and computeBacktrackingHeightFromDescendant-computeBacktrackingWidthFromIndirectAdjacent...but looking into this more I am less convinced. We could templatize the functions to do that, but I think that would hurt readability. A little duplication is okay if the result is clearer. I clear the review flag to remove the patch from the review queue until you add the tests.
Yusuke Suzuki
Comment 4 2014-05-22 09:09:48 PDT
(In reply to comment #3) Thank you for your review! > (From update of attachment 231508 [details]) > Looking into this in detail, I think the design is good. > > Yesterday I thought we should unify solveDescendantBacktrackingActionForChild-solveAdjacentBacktrackingActionForDirectAdjacent and computeBacktrackingHeightFromDescendant-computeBacktrackingWidthFromIndirectAdjacent...but looking into this more I am less convinced. > > We could templatize the functions to do that, but I think that would hurt readability. A little duplication is okay if the result is clearer. Right. Personally, I think this duplication represents the implementation flow simple. There's slightly different parts. For example, `computeBacktrackingHeightFromDescendant` has a special part to assign height information to adjacent fragments. > > I clear the review flag to remove the patch from the review queue until you add the tests. I'll add test cases!
Yusuke Suzuki
Comment 5 2014-05-22 12:47:21 PDT
Build Bot
Comment 6 2014-05-22 16:53:10 PDT
Comment on attachment 231904 [details] Patch Attachment 231904 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5260851703447552 New failing tests: media/W3C/video/readyState/readyState_during_canplay.html
Build Bot
Comment 7 2014-05-22 16:53:12 PDT
Created attachment 231919 [details] Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-11 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Benjamin Poulain
Comment 8 2014-05-23 01:17:04 PDT
Comment on attachment 231904 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=231904&action=review That's awwweeesssooooome. Great work. The bots are sick. You don't need to update the patch, I'll land it manually tomorrow. > LayoutTests/fast/selectors/backtracking-adjacent-optimized.html:23 > + <a class="ok"></a> <!-- Mathced. --> Typo here: Mathced. > LayoutTests/fast/selectors/backtracking-adjacent-optimized.html:24 > + <a class="ng"></a> <!-- Failed. And backtrack from here. --> I would duplicate this a dozen of times. That we we can to find bugs in which we would exhaust the register allocator.
Benjamin Poulain
Comment 9 2014-05-23 18:34:12 PDT
Created attachment 232008 [details] Patch for landing
WebKit Commit Bot
Comment 10 2014-05-23 19:11:47 PDT
Comment on attachment 232008 [details] Patch for landing Clearing flags on attachment: 232008 Committed r169298: <http://trac.webkit.org/changeset/169298>
WebKit Commit Bot
Comment 11 2014-05-23 19:11:50 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.