Bug 132918

Summary: JSDOMWindow should not claim HasImpureGetOwnPropertySlot
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cgarcia, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 132705    
Attachments:
Description Flags
Patch none

Description Mark Hahnenberg 2014-05-14 11:51:54 PDT
We now correctly handle the impurity of JSDOMWindow's custom getOwnPropertySlot without needing the blanket HasImpureGetOwnPropertySlot. Getting rid of this flag will allow us to cache many properties/methods on both the JSDOMWindow and its prototype, which are very commonly used across the web.
Comment 1 Mark Hahnenberg 2014-05-15 15:30:08 PDT
Created attachment 231536 [details]
Patch
Comment 2 Geoffrey Garen 2014-05-15 15:49:53 PDT
Comment on attachment 231536 [details]
Patch

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

r=me

> Source/WebCore/ChangeLog:12
> +        We now correctly handle the impurity of JSDOMWindow's custom getOwnPropertySlot without needing the 
> +        blanket HasImpureGetOwnPropertySlot. Getting rid of this flag will allow us to cache many 

Should specify that we do this through explicit watchpoint.
Comment 3 Mark Hahnenberg 2014-05-15 16:03:38 PDT
Committed r168914: <http://trac.webkit.org/changeset/168914>
Comment 4 Mark Hahnenberg 2014-05-15 16:04:21 PDT
Comment on attachment 231536 [details]
Patch

Clearing review flag.