WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 21295
21214
speed up function calls by eliminating the need for a new ExecState each time
https://bugs.webkit.org/show_bug.cgi?id=21214
Summary
speed up function calls by eliminating the need for a new ExecState each time
Darin Adler
Reported
2008-09-29 09:05:18 PDT
Looks like I'm going to get rid of ExecState altogether and make the pointer we pass everywhere be a JSGlobalData pointer.
Attachments
work in progress
(49.06 KB, patch)
2008-09-29 09:40 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
work in progress
(64.87 KB, patch)
2008-09-29 09:41 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
patch that removes some unused ExecState cruft
(9.98 KB, patch)
2008-09-29 17:38 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
patch that removes m_prev from ExecState
(6.73 KB, patch)
2008-09-30 16:24 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
patch to remove some uses of dynamicGlobalObject
(11.22 KB, patch)
2008-10-01 14:04 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2008-09-29 09:40:33 PDT
Created
attachment 23910
[details]
work in progress
Darin Adler
Comment 2
2008-09-29 09:41:17 PDT
Created
attachment 23911
[details]
work in progress
Darin Adler
Comment 3
2008-09-29 17:38:24 PDT
Created
attachment 23924
[details]
patch that removes some unused ExecState cruft
Darin Adler
Comment 4
2008-09-29 18:14:56 PDT
Comment on
attachment 23924
[details]
patch that removes some unused ExecState cruft Clearing review flag since this was landed.
http://trac.webkit.org/changeset/37088
Eric Seidel (no email)
Comment 5
2008-09-29 18:16:31 PDT
Interesting. If ExecState dies, the "ExceptionHolder" abstraction we built to replace ExecState* for NodeFitler, NodeIterator, TreeWalker, etc. will have to be re-thought.
Darin Adler
Comment 6
2008-09-30 16:24:15 PDT
Created
attachment 23961
[details]
patch that removes m_prev from ExecState
Geoffrey Garen
Comment 7
2008-09-30 16:30:48 PDT
Comment on
attachment 23961
[details]
patch that removes m_prev from ExecState r=me Please check SunSpider before landing.
Darin Adler
Comment 8
2008-09-30 16:47:17 PDT
Comment on
attachment 23961
[details]
patch that removes m_prev from ExecState Clearing review flag since this is landed.
http://trac.webkit.org/changeset/37125
Darin Adler
Comment 9
2008-10-01 14:04:01 PDT
Created
attachment 23994
[details]
patch to remove some uses of dynamicGlobalObject
Eric Seidel (no email)
Comment 10
2008-10-01 15:12:39 PDT
Comment on
attachment 23994
[details]
patch to remove some uses of dynamicGlobalObject None of these dynamic -> lexical change behavior? It's not possible to override the object prototype I assume? (thus it's functionally equivalent to ask on either global object?) The shell ones I would believe, since no one really cares about the shell, the Object.prototype I have less context for to make an informed decision. Otherwise looks fine.
Darin Adler
Comment 11
2008-10-01 18:29:14 PDT
(In reply to
comment #10
)
> None of these dynamic -> lexical change behavior? It's not possible to > override the object prototype I assume? (thus it's functionally equivalent to > ask on either global object?) The shell ones I would believe, since no one > really cares about the shell, the Object.prototype I have less context for to > make an informed decision.
As Geoff explained to me, the general principle here is that the dynamic global object (bad name we should improve) is never the correct one for security purposes because it corresponds to the page where the current code started from, not the page that corresponds to the code being run. There is a change in behavior, but not for the web browser. Only in obscure cases of use of the JavaScriptCore API. I'll think about whether I can make a test case to demonstrate the improvement.
Darin Adler
Comment 12
2008-10-01 18:30:56 PDT
Comment on
attachment 23994
[details]
patch to remove some uses of dynamicGlobalObject Clearing review flag since this was landed.
http://trac.webkit.org/changeset/37175
Darin Adler
Comment 13
2008-10-02 16:38:51 PDT
*** This bug has been marked as a duplicate of
21295
***
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