Bug 255928
| Summary: | Simplify / optimize JSC's LiteralParser | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | JavaScriptCore | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Simplify / optimize JSC's LiteralParser:
- Avoid storing the start/end pointers inside LiteralParserToken, as they are not actually needed. We already have a `stringStart + length` for strings/identifiers, which is all that's needed.
- Stop using LiteralParserToken::stringIs8Bit for identifiers. Unlike strings, identifiers always use the same character type as the LiteralParser. This also avoids some unnecessary branching.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/13151
EWS
Committed 263416@main (f6ec77d6554e): <https://commits.webkit.org/263416@main>
Reviewed commits have been landed. Closing PR #13151 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/108559160>