[Webkit-unassigned] [Bug 112719] Cache a pointer to V8DOMActivityLogger in PerContextData

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 19 17:36:57 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=112719


Kentaro Hara <haraken at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #193953|review?                     |review+
               Flag|                            |




--- Comment #3 from Kentaro Hara <haraken at chromium.org>  2013-03-19 17:39:23 PST ---
(From update of attachment 193953)
View in context: https://bugs.webkit.org/attachment.cgi?id=193953&action=review

Looks OK

> Source/WebCore/ChangeLog:16
> +        Cache a pointer to V8DOMActivityLogger in PerContextData.
> +        Adds a data member (and getter, setter methods) to V8PerContextData
> +        that holds a pointer to a V8DOMActivityLogger. This member is set while
> +        initializing the context for a V8DOMWindowShell. Ownership of the pointer
> +        is still retained by the HashMap in DOMWrapperWorld.
> +        As a result of this patch, subsequent patches that will implement logging
> +        for DOM API access (See bug 107207) will be able to obtain a reference to
> +        the logger directly from PerContextData. This will benefit performance as it
> +        will be faster than looking up the logger in the HashMap in DOMWrapperWorld.
> +        https://bugs.webkit.org/show_bug.cgi?id=112719
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        There are no new tests as there is no change in behavior.

Nit: In WebKit we write a bug title (which should be in one line), a bug URL, a bug description, and a test, in this order. Please fix it before landing.

> Source/WebCore/bindings/v8/V8PerContextData.h:128
> +    V8DOMActivityLogger* m_activityLogger;

Would you add a comment about the lifetime?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list