WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
252278
[WGSL] Use a SortedArrayMap to match keywords and reserved words
https://bugs.webkit.org/show_bug.cgi?id=252278
Summary
[WGSL] Use a SortedArrayMap to match keywords and reserved words
Dan Glastonbury
Reported
2023-02-14 17:50:36 PST
In lieu of a tool to generate a trie for detecting keywords and reserved words, replace the long sequence of if/return with a SortedArrayMap of keyword to TokenType.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-02-14 17:51:13 PST
<
rdar://problem/105476092
>
Dan Glastonbury
Comment 2
2023-02-14 20:56:33 PST
Pull request:
https://github.com/WebKit/WebKit/pull/10121
EWS
Comment 3
2023-02-15 17:40:05 PST
Committed
260336@main
(9ee0c4ea8853): <
https://commits.webkit.org/260336@main
> Reviewed commits have been landed. Closing PR #10121 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug