WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
134635
Fast path for jsStringWithCache() when asked for the same string repeatedly.
https://bugs.webkit.org/show_bug.cgi?id=134635
Summary
Fast path for jsStringWithCache() when asked for the same string repeatedly.
Andreas Kling
Reported
2014-07-04 10:24:17 PDT
Something I talked about with Geoff a while ago, that other JS engines already do, that we could save some easy cycles with..
Attachments
Patch
(8.47 KB, patch)
2014-07-04 10:28 PDT
,
Andreas Kling
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
(518.68 KB, application/zip)
2014-07-04 12:51 PDT
,
Build Bot
no flags
Details
Patch
(10.04 KB, patch)
2014-07-04 15:33 PDT
,
Andreas Kling
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2014-07-04 10:28:09 PDT
Created
attachment 234414
[details]
Patch
Darin Adler
Comment 2
2014-07-04 12:15:45 PDT
Comment on
attachment 234414
[details]
Patch Windows export issue: 1>WebKit.exp : error LNK2001: unresolved external symbol "class JSC::JSValue __cdecl WebCore::jsStringWithCache(class JSC::ExecState *,class WTF::String const &)" (?jsStringWithCache@WebCore@@YA?AVJSValue@JSC@@PAVExecState@
3@ABVString@WTF@@@Z
)
Build Bot
Comment 3
2014-07-04 12:51:18 PDT
Comment on
attachment 234414
[details]
Patch
Attachment 234414
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/6239582064476160
New failing tests: media/W3C/video/networkState/networkState_during_loadstart.html
Build Bot
Comment 4
2014-07-04 12:51:21 PDT
Created
attachment 234417
[details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Andreas Kling
Comment 5
2014-07-04 15:33:57 PDT
Created
attachment 234423
[details]
Patch Try to fix Windows build.
Andreas Kling
Comment 6
2014-07-04 20:37:04 PDT
Committed
r170818
: <
http://trac.webkit.org/changeset/170818
>
Geoffrey Garen
Comment 7
2014-07-07 11:21:23 PDT
Comment on
attachment 234423
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=234423&action=review
> Source/JavaScriptCore/runtime/JSString.cpp:383 > + vm.lastCachedString = addResult.iterator->value.get(); > + return vm.lastCachedString.get();
Weak<T>::get() is non-trivial, so it is better to put the value in a local variable and return the local variable. The compiler can't optimize away this get().
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