Changeset 245312 in webkit


Ignore:
Timestamp:
May 14, 2019 2:49:54 PM (5 years ago)
Author:
rmorisset@apple.com
Message:

[WHLSL] parseEffectfulSuffix() is never called
https://bugs.webkit.org/show_bug.cgi?id=195864
<rdar://problem/50746278>

Reviewed by Myles C. Maxfield.

The fix is trivial: when parseEffectfulPrefix does not see a ++ or --, it must call parseEffectfulSuffix.

No test yet, as it is not testable until the property resolver is finished.
It will be tested with the rest of the compiler, when we port the testsuite from the js implementation (it already covers this case).

  • Modules/webgpu/WHLSL/WHLSLParser.cpp:

(WebCore::WHLSL::Parser::parseEffectfulPrefix):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245302 r245312  
     12019-05-14  Robin Morisset  <rmorisset@apple.com>
     2
     3        [WHLSL] parseEffectfulSuffix() is never called
     4        https://bugs.webkit.org/show_bug.cgi?id=195864
     5        <rdar://problem/50746278>
     6
     7        Reviewed by Myles C. Maxfield.
     8
     9        The fix is trivial: when parseEffectfulPrefix does not see a ++ or --, it must call parseEffectfulSuffix.
     10
     11        No test yet, as it is not testable until the property resolver is finished.
     12        It will be tested with the rest of the compiler, when we port the testsuite from the js implementation (it already covers this case).
     13
     14        * Modules/webgpu/WHLSL/WHLSLParser.cpp:
     15        (WebCore::WHLSL::Parser::parseEffectfulPrefix):
     16
    1172019-05-14  Robin Morisset  <rmorisset@apple.com>
    218
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLParser.cpp

    r245302 r245312  
    18111811    auto prefix = consumeTypes({ Lexer::Token::Type::PlusPlus, Lexer::Token::Type::MinusMinus });
    18121812    if (!prefix)
    1813         return Unexpected<Error>(prefix.error());
     1813        return parseEffectfulSuffix();
    18141814
    18151815    auto previous = parsePossiblePrefix();
Note: See TracChangeset for help on using the changeset viewer.