Bug 73174 - Change set 101187 from bug 73154 removed already lower case optimization
Summary: Change set 101187 from bug 73154 removed already lower case optimization
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: 2011-11-27 13:53 PST by Michael Saboff
Modified: 2011-11-28 13:42 PST (History)
0 users

See Also:


Attachments
Patch (1.44 KB, patch)
2011-11-27 13:59 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 2011-11-27 13:53:41 PST
The patch landed in <http://trac.webkit.org/changeset/101187> did not include the prior "is already lower case" optimization.
Comment 1 Michael Saboff 2011-11-27 13:59:26 PST
Created attachment 116679 [details]
Patch
Comment 2 Geoffrey Garen 2011-11-28 11:45:56 PST
Comment on attachment 116679 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=116679&action=review

r=me with one change below.

> Source/JavaScriptCore/runtime/StringPrototype.cpp:1196
> +    return JSValue::encode(jsString(exec, UString(lower)));

lower.release() is the idiom for avoiding refcount churn here.
Comment 3 Michael Saboff 2011-11-28 13:42:54 PST
Committed r101278: <http://trac.webkit.org/changeset/101278>