Changeset 246128 in webkit
- Timestamp:
- Jun 5, 2019, 2:28:01 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Modules/webgpu/WHLSL/WHLSLCheckDuplicateFunctions.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246126 r246128 1 2019-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 1 11 2019-06-05 Alex Christensen <achristensen@webkit.org> 2 12 -
trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLCheckDuplicateFunctions.cpp
r246115 r246128 161 161 162 162 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. 166 169 ASSERT(passesStaticChecks(nativeFunctionDeclaration.get())); 167 170 if (functions.contains(DuplicateFunctionKey { nativeFunctionDeclaration.get() })) 168 171 return false; 169 ASSERT(add(nativeFunctionDeclaration.get()));170 172 } 171 173
Note:
See TracChangeset
for help on using the changeset viewer.