[webkit-changes] [WebKit/WebKit] c94bdc: [WGSL] AST::Builder needs to shrink nodes when res...

Tadeu Zagallo noreply at github.com
Tue May 30 00:19:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c94bdc51378de64788a375c8dd75feb58bdd172f
      https://github.com/WebKit/WebKit/commit/c94bdc51378de64788a375c8dd75feb58bdd172f
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTBuilder.cpp

  Log Message:
  -----------
  [WGSL] AST::Builder needs to shrink nodes when restoring state
https://bugs.webkit.org/show_bug.cgi?id=257457
rdar://109974514

Reviewed by Myles C. Maxfield.

When restoring the previous state of the AST builder we free the nodes that were
allocated during the current compilation, but we also need to remove them from
m_nodes, otherwise they'll be freed multiple times.

* Source/WebGPU/WGSL/AST/ASTBuilder.cpp:
(WGSL::AST::Builder::restore):

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




More information about the webkit-changes mailing list