Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5ebfd986c0ce5db75eb4bed79902f577b3a4f3d7
      
https://github.com/WebKit/WebKit/commit/5ebfd986c0ce5db75eb4bed79902f577b3a4f3d7
  Author: Tadeu Zagallo <[email protected]>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M Source/WebGPU/WGSL/TypeStore.cpp
    M Source/WebGPU/WGSL/TypeStore.h
    M Source/WebGPU/WGSL/Types.cpp

  Log Message:
  -----------
  [WGSL] Cache parameterized types
https://bugs.webkit.org/show_bug.cgi?id=252326
rdar://105503636

Reviewed by Myles C. Maxfield.

Hash cons parameterized types so they can be checked for equality
with pointer identity.

* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::VectorKey::extra const):
(WGSL::MatrixKey::extra const):
(WGSL::ArrayKey::extra const):
(WGSL::TypeStore::TypeCache::find const):
(WGSL::TypeStore::TypeCache::insert):
(WGSL::TypeStore::constructType):
(WGSL::TypeStore::arrayType):
(WGSL::TypeStore::vectorType):
(WGSL::TypeStore::matrixType):
(WGSL::TypeStore::allocateConstructor):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::dump const):

Canonical link: https://commits.webkit.org/260358@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to