WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112719
Cache a pointer to V8DOMActivityLogger in PerContextData
https://bugs.webkit.org/show_bug.cgi?id=112719
Summary
Cache a pointer to V8DOMActivityLogger in PerContextData
Ankur Taly
Reported
2013-03-19 11:12:54 PDT
Add a data member (and getter, setter methods) to V8PerContextData that holds a pointer to V8DOMActivityLogger. This member is set while initializing the context for a V8DOMWindowShell. Ownership of the pointer is still retained by the HashMap in DOMWrapperWorld.
Attachments
Patch
(3.09 KB, patch)
2013-03-19 17:29 PDT
,
Ankur Taly
no flags
Details
Formatted Diff
Diff
Patch
(3.36 KB, patch)
2013-03-19 18:04 PDT
,
Ankur Taly
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ankur Taly
Comment 1
2013-03-19 15:25:57 PDT
Subsequent patches (addressing Bug: 107207) will then obtain a reference to the V8DOMActivityLogger directly from PerContextData attached to the current context. The assumption is that this is faster than getting the reference from the HashMap in DOMWrapperWorld
Ankur Taly
Comment 2
2013-03-19 17:29:48 PDT
Created
attachment 193953
[details]
Patch
Kentaro Hara
Comment 3
2013-03-19 17:39:23 PDT
Comment on
attachment 193953
[details]
Patch 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?
Ankur Taly
Comment 4
2013-03-19 18:04:31 PDT
Created
attachment 193960
[details]
Patch
Kentaro Hara
Comment 5
2013-03-19 18:05:18 PDT
Comment on
attachment 193960
[details]
Patch Thanks!
WebKit Review Bot
Comment 6
2013-03-19 19:41:15 PDT
Comment on
attachment 193960
[details]
Patch Clearing flags on attachment: 193960 Committed
r146295
: <
http://trac.webkit.org/changeset/146295
>
WebKit Review Bot
Comment 7
2013-03-19 19:41:18 PDT
All reviewed patches have been landed. Closing bug.
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