WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158250
Dictionary property access should be fast
https://bugs.webkit.org/show_bug.cgi?id=158250
Summary
Dictionary property access should be fast
Geoffrey Garen
Reported
2016-05-31 21:47:27 PDT
Dictionary property access should be fast
Attachments
Patch
(5.35 KB, patch)
2016-05-31 21:53 PDT
,
Geoffrey Garen
no flags
Details
Formatted Diff
Diff
Patch
(4.41 KB, patch)
2016-05-31 22:00 PDT
,
Geoffrey Garen
keith_miller
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Geoffrey Garen
Comment 1
2016-05-31 21:53:43 PDT
Created
attachment 280212
[details]
Patch
Geoffrey Garen
Comment 2
2016-05-31 22:00:25 PDT
Created
attachment 280213
[details]
Patch
Keith Miller
Comment 3
2016-06-01 09:36:24 PDT
Comment on
attachment 280213
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=280213&action=review
r=me with comments.
> Source/JavaScriptCore/runtime/JSObject.cpp:2004 > - if (structure()->isDictionary()) { > + if (structure()->isUncacheableDictionary()) {
I think it would be useful to have a comment stating that JSObject::putDirectInternal will transition the structure on an attribute change. Also, do we have tests for this?
> Source/JavaScriptCore/runtime/JSObject.h:1228 > - if (structure.isDictionary()) { > + if (structure.isUncacheableDictionary()) {
Ditto.
Geoffrey Garen
Comment 4
2016-06-01 12:28:28 PDT
> > Source/JavaScriptCore/runtime/JSObject.cpp:2004 > > - if (structure()->isDictionary()) { > > + if (structure()->isUncacheableDictionary()) { > > I think it would be useful to have a comment stating that > JSObject::putDirectInternal will transition the structure on an attribute > change.
Okeedokee.
> Also, do we have tests for this?
I checked SVN history and it looks like the change to putDirect corresponded to some web standards test suites.
Geoffrey Garen
Comment 5
2016-06-01 12:31:15 PDT
Committed
r201562
: <
http://trac.webkit.org/changeset/201562
>
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