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

Changeset 246128 in webkit


Ignore:
Timestamp:
Jun 5, 2019, 2:28:01 PM (7 years ago)
Author:
sbarati@apple.com
Message:

Unreviewed. Follow up fix after r246115.
I changed the code to assert that we don't have duplicate native
functions. It turns out we do. I will fix that here, then add
back the assert. https://bugs.webkit.org/show_bug.cgi?id=198580

  • Modules/webgpu/WHLSL/WHLSLCheckDuplicateFunctions.cpp:

(WebCore::WHLSL::checkDuplicateFunctions):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246126 r246128  
     12019-06-05  Saam Barati  <sbarati@apple.com>
     2
     3        Unreviewed. Follow up fix after r246115.
     4        I changed the code to assert that we don't have duplicate native
     5        functions. It turns out we do. I will fix that here, then add
     6        back the assert. https://bugs.webkit.org/show_bug.cgi?id=198580
     7
     8        * Modules/webgpu/WHLSL/WHLSLCheckDuplicateFunctions.cpp:
     9        (WebCore::WHLSL::checkDuplicateFunctions):
     10
    1112019-06-05  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLCheckDuplicateFunctions.cpp

    r246115 r246128  
    161161
    162162    for (auto& nativeFunctionDeclaration : program.nativeFunctionDeclarations()) {
    163         // Native function declarations are never equal to each other. So we don't need
    164         // to add them to the set, because they can't collide with each other. Instead, we
    165         // just check that no user-defined function is a duplicate.
     163        // We generate duplicate native function declarations in synthesize constructors.
     164        // FIXME: is this right?
     165        // https://bugs.webkit.org/show_bug.cgi?id=198580
     166        //
     167        // Since we do that, we just need to make sure no native function is a duplicate
     168        // of a user-defined function.
    166169        ASSERT(passesStaticChecks(nativeFunctionDeclaration.get()));
    167170        if (functions.contains(DuplicateFunctionKey { nativeFunctionDeclaration.get() }))
    168171            return false;
    169         ASSERT(add(nativeFunctionDeclaration.get()));
    170172    }
    171173
Note: See TracChangeset for help on using the changeset viewer.