Bug 73174

Summary: Change set 101187 from bug 73154 removed already lower case optimization
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch ggaren: review+

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>