[JSC] Tweak LiteralParser to improve lexing performance
Created attachment 340172 [details] Patch
Comment on attachment 340172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=340172&action=review r=me > Source/JavaScriptCore/runtime/LiteralParser.cpp:501 > + default: Maybe add a debug assert of what the token types are here just for documentation?
Comment on attachment 340172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=340172&action=review Thanks! >> Source/JavaScriptCore/runtime/LiteralParser.cpp:501 >> + default: > > Maybe add a debug assert of what the token types are here just for documentation? This is everything else... I've added them.
Committed r231761: <https://trac.webkit.org/changeset/231761>
<rdar://problem/40220708>
The effect seems a bit small compared to my local environment, but it seems improved :) https://arewefastyet.com/#machine=29&view=single&suite=kraken&subtest=parse-financial