Changeset 35068 in webkit for trunk/JavaScriptCore/kjs/JSObject.h


Ignore:
Timestamp:
Jul 8, 2008, 11:28:27 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-07-08 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Added support for checking if an object has custom properties in its
property map. WebCore uses this to optimize marking DOM wrappers.

WebCore:

2008-07-08 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Only artificially mark JS DOM wrappers if they have custom properties.


21X speedup on http://nerget.com/jstests/dom-mandelbrot.html.


No, that is not a typo.

  • bindings/js/JSDOMBinding.cpp: (WebCore::ScriptInterpreter::markDOMNodesForDocument):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSObject.h

    r35027 r35068  
    307307        void putDirect(ExecState*, const Identifier& propertyName, int value, unsigned attr = 0);
    308308        void removeDirect(const Identifier& propertyName);
     309        bool hasCustomProperties() { return !m_propertyMap.isEmpty(); }
    309310
    310311        // convenience to add a function property under the function's own built-in name
Note: See TracChangeset for help on using the changeset viewer.