Changeset 236228 in webkit


Ignore:
Timestamp:
Sep 19, 2018 3:31:18 PM (6 years ago)
Author:
rniwa@webkit.org
Message:

REGRESSION(r235917): 2% regression in Dromaeo CSS selector on MacBookPro11,4
https://bugs.webkit.org/show_bug.cgi?id=189738

Reviewed by Yusuke Suzuki.

The regression was caused by the regundant walk to the parent element. Removed it to fix the regression.

  • cssjit/SelectorCompiler.cpp:

(WebCore::SelectorCompiler::SelectorCodeGenerator::generateNthChildParentCheckAndRelationUpdate):
(WebCore::SelectorCompiler::SelectorCodeGenerator::generateNthLastChildParentCheckAndRelationUpdate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236216 r236228  
     12018-09-19  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        REGRESSION(r235917): 2% regression in Dromaeo CSS selector on MacBookPro11,4
     4        https://bugs.webkit.org/show_bug.cgi?id=189738
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        The regression was caused by the regundant walk to the parent element. Removed it to fix the regression.
     9
     10        * cssjit/SelectorCompiler.cpp:
     11        (WebCore::SelectorCompiler::SelectorCodeGenerator::generateNthChildParentCheckAndRelationUpdate):
     12        (WebCore::SelectorCompiler::SelectorCodeGenerator::generateNthLastChildParentCheckAndRelationUpdate):
     13
    1142018-09-19  John Wilander  <wilander@apple.com>
    215
  • trunk/Source/WebCore/cssjit/SelectorCompiler.cpp

    r235917 r236228  
    35523552    Assembler::Jump notElement = DOMJIT::branchTestIsElementFlagOnNode(m_assembler, Assembler::Zero, parentNode);
    35533553
    3554     generateWalkToParentElement(failureCases, parentNode);
    35553554    auto relation = fragmentMatchesRightmostOrAdjacentElement(fragment)
    35563555        ? Style::Relation::ChildrenAffectedByForwardPositionalRules
     
    36743673    Assembler::Jump notElement = DOMJIT::branchTestIsElementFlagOnNode(m_assembler, Assembler::Zero, parentNode);
    36753674
    3676     generateWalkToParentElement(failureCases, parentNode);
    36773675    auto relation = fragmentMatchesRightmostOrAdjacentElement(fragment)
    36783676        ? Style::Relation::ChildrenAffectedByBackwardPositionalRules
Note: See TracChangeset for help on using the changeset viewer.