Dictionary property access should be fast
Created attachment 280212 [details] Patch
Created attachment 280213 [details] Patch
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.
> > 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.
Committed r201562: <http://trac.webkit.org/changeset/201562>