Bug 134655 - Fast path for casting JSValue to JSDocument*.
Summary: Fast path for casting JSValue to JSDocument*.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-05 11:56 PDT by Andreas Kling
Modified: 2015-01-21 10:15 PST (History)
8 users (show)

See Also:


Attachments
Patch (9.35 KB, patch)
2014-07-05 11:56 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch II (11.39 KB, patch)
2015-01-19 16:39 PST, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch II (11.40 KB, patch)
2015-01-19 16:48 PST, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2014-07-05 11:56:29 PDT
Fast path for casting JSValue to JSDocument*.
Comment 1 Andreas Kling 2014-07-05 11:56:54 PDT
Created attachment 234445 [details]
Patch
Comment 2 Antti Koivisto 2014-07-06 10:59:10 PDT
Comment on attachment 234445 [details]
Patch

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

> Source/WebCore/WebCore.xcodeproj/project.pbxproj:20760
> +				ADDA94BF19686F8000453029 /* JSDocumentCustom.h */,

You should probably include this file to the patch too.
Comment 3 Andreas Kling 2015-01-19 16:39:11 PST
Created attachment 244937 [details]
Patch II
Comment 4 Andreas Kling 2015-01-19 16:48:51 PST
Created attachment 244938 [details]
Patch II
Comment 5 WebKit Commit Bot 2015-01-20 15:10:10 PST
Comment on attachment 244938 [details]
Patch II

Clearing flags on attachment: 244938

Committed r178758: <http://trac.webkit.org/changeset/178758>
Comment 6 WebKit Commit Bot 2015-01-20 15:10:18 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Andreas Kling 2015-01-21 10:15:19 PST
perf.webkit.org says this was a ~4% progression on Bindings/get-element-by-id

<https://perf.webkit.org/#mode=charts&chartList=%5B%5B%22mac-mountainlion%22%2C%22Bindings%2Fget-element-by-id%3ARuns%22%5D%5D&zoom=%5B1421575570203%2C1421795645667.8208%5D>