Summary: | Don't create cached functions that access lexicalGlobalObject() | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Saboff <msaboff> | ||||
Component: | WebCore JavaScript | Assignee: | Michael Saboff <msaboff> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 136724, 136901, 137907 | ||||||
Attachments: |
|
Description
Michael Saboff
2014-10-17 15:05:19 PDT
Created attachment 240045 [details]
Patch
Comment on attachment 240045 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240045&action=review r=me > LayoutTests/ChangeLog:17 > + a parents and child windows instances are the same. Now they are always different. "parent's" "window's" Committed r174847: <http://trac.webkit.org/changeset/174847> Comment on attachment 240045 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240045&action=review > Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp:65 > + if (propertyName == Identifier(exec, "open")) { I believe this is less efficient than: if (propertyName == "open") { > Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp:76 > + const HashTableValue* entry = JSHTMLDocument::info()->staticPropHashTable->entry(propertyName); > + if (entry) { Would be nice to put this definition inside the if. (In reply to comment #4) > Comment on attachment 240045 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240045&action=review > > > Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp:65 > > + if (propertyName == Identifier(exec, "open")) { > > I believe this is less efficient than: > > if (propertyName == "open") { > > > Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp:76 > > + const HashTableValue* entry = JSHTMLDocument::info()->staticPropHashTable->entry(propertyName); > > + if (entry) { > > Would be nice to put this definition inside the if. Tracked in <https://bugs.webkit.org/show_bug.cgi?id=137885> |