⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245721 in webkit


Ignore:
Timestamp:
May 23, 2019, 3:21:04 PM (7 years ago)
Author:
sbarati@apple.com
Message:

[WHLSL] Property resolver needs to recurse to handle the base when simplifying rvalues
https://bugs.webkit.org/show_bug.cgi?id=198193

Reviewed by Myles Maxfield.

Source/WebCore:

We were only transforming the top most node in the AST. So things like
'x = foo.bar' would work, but 'x = foo.bar.baz' would not.

Test: webgpu/whlsl-nested-dot-expression-rvalue.html

  • Modules/webgpu/WHLSL/WHLSLPropertyResolver.cpp:

(WebCore::WHLSL::PropertyResolver::simplifyRightValue):

LayoutTests:

  • webgpu/whlsl-nested-dot-expression-rvalue-expected.html: Added.
  • webgpu/whlsl-nested-dot-expression-rvalue.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245720 r245721  
     12019-05-23  Saam barati  <sbarati@apple.com>
     2
     3        [WHLSL] Property resolver needs to recurse to handle the base when simplifying rvalues
     4        https://bugs.webkit.org/show_bug.cgi?id=198193
     5
     6        Reviewed by Myles Maxfield.
     7
     8        * webgpu/whlsl-nested-dot-expression-rvalue-expected.html: Added.
     9        * webgpu/whlsl-nested-dot-expression-rvalue.html: Added.
     10
    1112019-05-23  Shawn Roberts  <sroberts@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r245717 r245721  
     12019-05-23  Saam barati  <sbarati@apple.com>
     2
     3        [WHLSL] Property resolver needs to recurse to handle the base when simplifying rvalues
     4        https://bugs.webkit.org/show_bug.cgi?id=198193
     5
     6        Reviewed by Myles Maxfield.
     7
     8        We were only transforming the top most node in the AST. So things like
     9        'x = foo.bar' would work, but 'x = foo.bar.baz' would not.
     10
     11        Test: webgpu/whlsl-nested-dot-expression-rvalue.html
     12
     13        * Modules/webgpu/WHLSL/WHLSLPropertyResolver.cpp:
     14        (WebCore::WHLSL::PropertyResolver::simplifyRightValue):
     15
    1162019-05-22  Stephanie Lewis  <slewis@apple.com>
    217
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLPropertyResolver.cpp

    r245706 r245721  
    590590    Lexer::Token origin = dotExpression.origin();
    591591
     592    checkErrorAndVisit(dotExpression.base());
     593
    592594    if (auto* anderFunction = dotExpression.anderFunction()) {
    593595        auto& base = dotExpression.base();
Note: See TracChangeset for help on using the changeset viewer.