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

Changeset 245724 in webkit


Ignore:
Timestamp:
May 23, 2019, 4:13:45 PM (7 years ago)
Author:
sbarati@apple.com
Message:

[WHLSL] Don't wrap anonymous variables in parens in the AST dumper
https://bugs.webkit.org/show_bug.cgi?id=198196

Reviewed by Myles C. Maxfield.

This makes the dump of 'foo.bar.x = 42' go from
($(0x7f86d9d94440) = &foo, $(0x7f86d9d944e0) = operator.bar(*$(0x7f86d9d94440)), $(0x7f86d9d944e0) = operator.x=($(0x7f86d9d944e0), 42), *$(0x7f86d9d94440) = operator.bar=(*$(0x7f86d9d94440), $(0x7f86d9d944e0)));

to:
($0x7f86d9d94440 = &foo, $0x7f86d9d944e0 = operator.bar(*$0x7f86d9d94440), $0x7f86d9d944e0 = operator.x=($0x7f86d9d944e0, 42), *$0x7f86d9d94440 = operator.bar=(*$0x7f86d9d94440, $0x7f86d9d944e0));

  • Modules/webgpu/WHLSL/WHLSLASTDumper.cpp:

(WebCore::WHLSL::ASTDumper::visit):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245722 r245724  
     12019-05-23  Saam barati  <sbarati@apple.com>
     2
     3        [WHLSL] Don't wrap anonymous variables in parens in the AST dumper
     4        https://bugs.webkit.org/show_bug.cgi?id=198196
     5
     6        Reviewed by Myles C. Maxfield.
     7
     8        This makes the dump of 'foo.bar.x = 42' go from
     9        ($(0x7f86d9d94440) = &foo, $(0x7f86d9d944e0) = operator.bar(*$(0x7f86d9d94440)), $(0x7f86d9d944e0) = operator.x=($(0x7f86d9d944e0), 42), *$(0x7f86d9d94440) = operator.bar=(*$(0x7f86d9d94440), $(0x7f86d9d944e0)));
     10       
     11        to:
     12        ($0x7f86d9d94440 = &foo, $0x7f86d9d944e0 = operator.bar(*$0x7f86d9d94440), $0x7f86d9d944e0 = operator.x=($0x7f86d9d944e0, 42), *$0x7f86d9d94440 = operator.bar=(*$0x7f86d9d94440, $0x7f86d9d944e0));
     13
     14        * Modules/webgpu/WHLSL/WHLSLASTDumper.cpp:
     15        (WebCore::WHLSL::ASTDumper::visit):
     16
    1172019-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
    218
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLASTDumper.cpp

    r245680 r245724  
    637637{
    638638    if (variableReference.name().isEmpty())
    639         m_out.print("$(", RawPointer(variableReference.variable()), ")");
     639        m_out.print("$", RawPointer(variableReference.variable()));
    640640    else
    641641        m_out.print(variableReference.name());
Note: See TracChangeset for help on using the changeset viewer.