Bug 252790
| Summary: | Produce 8 bit function toString() strings when possible | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Cameron McCormack (:heycam) <heycam> |
| Component: | JavaScriptCore | Assignee: | Cameron McCormack (:heycam) <heycam> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Cameron McCormack (:heycam)
Some pages call Function.prototype.toString() on a function whose resulting string contains only 8 bit characters, but results in a 16 bit WTF::String due to the script source being stored in a 16 bit string. This can end up wasting memory. Let's see if perf allows us to check these strings' content and create an 8 bit string if possible.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/105810084>
Cameron McCormack (:heycam)
Pull request: https://github.com/WebKit/WebKit/pull/10555