WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 39051
Various JavaScript string optimizations
https://bugs.webkit.org/show_bug.cgi?id=39051
Summary
Various JavaScript string optimizations
Maciej Stachowiak
Reported
2010-05-13 01:13:33 PDT
Various JavaScript string optimizations
Attachments
Patch
(6.51 KB, patch)
2010-05-13 01:44 PDT
,
Maciej Stachowiak
mrowe
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Maciej Stachowiak
Comment 1
2010-05-13 01:44:54 PDT
Created
attachment 55956
[details]
Patch
Mark Rowe (bdash)
Comment 2
2010-05-13 01:51:52 PDT
Comment on
attachment 55956
[details]
Patch JavaScriptCore/ChangeLog:15 + (JSC::RegExp::match): resize overctor to 0 instead of clearing to avoid “overctor” should be “ovector”. JavaScriptCore/runtime/StringPrototype.cpp:762 + if (!(end >= 0)) // check for nevative values or NaN “nevative” should be “negative”. r=me
Maciej Stachowiak
Comment 3
2010-05-13 02:37:15 PDT
Committed
r59355
: <
http://trac.webkit.org/changeset/59355
>
Jeremy Orlow
Comment 4
2010-05-13 04:45:59 PDT
This is causing the build to fail on the tiger bot. I'm considering reverting it as I don't really know this code. Either of you guys still up?
Eric Seidel (no email)
Comment 5
2010-05-13 05:52:15 PDT
/Volumes/Data/WebKit-BuildSlave/tiger-intel-release/build/JavaScriptCore/runtime/StringPrototype.cpp: In function 'JSC::JSValue JSC::stringProtoFuncReplace(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, const JSC::ArgList&)': /Volumes/Data/WebKit-BuildSlave/tiger-intel-release/build/JavaScriptCore/runtime/StringPrototype.cpp:269: warning: 'buffer' may be used uninitialized in this function
Eric Seidel (no email)
Comment 6
2010-05-13 06:01:25 PDT
Tiger appears to not understand:
http://trac.webkit.org/browser/trunk/JavaScriptCore/runtime/StringPrototype.cpp#L269
Eric Seidel (no email)
Comment 7
2010-05-13 06:04:57 PDT
One possible fix would be to initialize buffer = 0. I'm not sure if that's right though, so it seems safer to roll out and let Maciej re-land a corrected fix in the morning. Maciej, webkit-patch apply-
attachment 55956
[details]
should set up your tree for easy re-landing of this patch after modifications.
Eric Seidel (no email)
Comment 8
2010-05-13 06:06:56 PDT
Nevermind. maciej fixed in
r59358
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug