Bug 58677 - globalObject moved to JSObjectWithGlobalObject.cpp inhibits inlining
Summary: globalObject moved to JSObjectWithGlobalObject.cpp inhibits inlining
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 11:55 PDT by Michael Saboff
Modified: 2011-04-15 18:20 PDT (History)
3 users (show)

See Also:


Attachments
Patch to move globalObject() to JSObjectWithGlobalObject.h (2.82 KB, patch)
2011-04-15 11:55 PDT, Michael Saboff
no flags Details | Formatted Diff | Diff
Updated patch with bug reference in ChangeLog (2.95 KB, patch)
2011-04-15 12:57 PDT, Michael Saboff
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2011-04-15 11:55:37 PDT
Created attachment 89824 [details]
Patch to move globalObject() to JSObjectWithGlobalObject.h

As part of r60057, globalObject() was moved from JSDOMBinding.h to JSObjectWithGlobalObject.cpp.  This limits a compilers ability to inline, especially in other components, namely WebCore.  This is causing a performance regression.

Moving globalObject() back to a .h file is worth ~5% on the dromaeo DOM benchmark.
Comment 1 WebKit Review Bot 2011-04-15 11:56:43 PDT
Attachment 89824 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1

Source/JavaScriptCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 Michael Saboff 2011-04-15 12:57:54 PDT
Created attachment 89835 [details]
Updated patch with bug reference in ChangeLog
Comment 3 Mark Rowe (bdash) 2011-04-15 13:09:20 PDT
Comment on attachment 89835 [details]
Updated patch with bug reference in ChangeLog

“equivolent”
Comment 4 Oliver Hunt 2011-04-15 13:16:19 PDT
Comment on attachment 89835 [details]
Updated patch with bug reference in ChangeLog

r=me
Comment 5 Jeff Miller 2011-04-15 13:47:42 PDT
Comment on attachment 89835 [details]
Updated patch with bug reference in ChangeLog

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

> Source/JavaScriptCore/ChangeLog:10
> +        it for a performance benefit.  An equivolent instance had been in

Typo - equivolent
Comment 6 Michael Saboff 2011-04-15 13:51:30 PDT
Committed r84030: <http://trac.webkit.org/changeset/84030>
Comment 7 Michael Saboff 2011-04-15 14:01:59 PDT
Note that I fixed the "equivalent" typo before landing the patch.
Comment 8 WebKit Review Bot 2011-04-15 18:20:29 PDT
http://trac.webkit.org/changeset/84030 might have broken WinCE Release (Build)