Bug 76646 - String::latin1() should take advantage of 8 bit strings
Summary: String::latin1() should take advantage of 8 bit strings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 11:17 PST by Michael Saboff
Modified: 2012-01-26 11:32 PST (History)
0 users

See Also:


Attachments
Patch (1.33 KB, patch)
2012-01-19 12:08 PST, Michael Saboff
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2012-01-19 11:17:13 PST
8 bit strings by definition contain latin1 characters.  If String::latin1() is called on an 8 bit string, we can just return the string.
Comment 1 Michael Saboff 2012-01-19 12:08:22 PST
Created attachment 123168 [details]
Patch
Comment 2 Geoffrey Garen 2012-01-19 15:57:53 PST
Comment on attachment 123168 [details]
Patch

r=me
Comment 3 Michael Saboff 2012-01-26 11:32:53 PST
Committed r106020: <http://trac.webkit.org/changeset/106020>