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
Patch (4.41 KB, patch)
2016-05-31 22:00 PDT, Geoffrey Garen
keith_miller: review+
Geoffrey Garen
Comment 1 2016-05-31 21:53:43 PDT
Geoffrey Garen
Comment 2 2016-05-31 22:00:25 PDT
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
Note You need to log in before you can comment on or make changes to this bug.