Changeset 133657 in webkit


Ignore:
Timestamp:
Nov 6, 2012 12:25:52 PM (11 years ago)
Author:
abarth@webkit.org
Message:

DOMImplementation should use ScriptWrappable
https://bugs.webkit.org/show_bug.cgi?id=101279

Reviewed by Eric Seidel.

PerformanceTests:

This simple PerformanceTest measure how quickly we can access
document.implementation. The goal of this performance test is just to
validate that using ScriptWrappable actually makes the bindings faster.

  • Bindings/document-implementation.html: Added.

Source/WebCore:

This patch makes DOMImplementation ScriptWrappable. Both the V8 and JSC
bindings automatically detect the presence of this base class and use
it to optimize getting and setting JavaScript wrappers.

This patch is a 23% progression on Bindings/document-implementation for
the V8 bindings and a 69% progression for the JSC bindings.

  • dom/DOMImplementation.h:
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r133539 r133657  
     12012-11-06  Adam Barth  <abarth@webkit.org>
     2
     3        DOMImplementation should use ScriptWrappable
     4        https://bugs.webkit.org/show_bug.cgi?id=101279
     5
     6        Reviewed by Eric Seidel.
     7
     8        This simple PerformanceTest measure how quickly we can access
     9        document.implementation. The goal of this performance test is just to
     10        validate that using ScriptWrappable actually makes the bindings faster.
     11
     12        * Bindings/document-implementation.html: Added.
     13
    1142012-11-05  Geoffrey Garen  <ggaren@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r133653 r133657  
     12012-11-06  Adam Barth  <abarth@webkit.org>
     2
     3        DOMImplementation should use ScriptWrappable
     4        https://bugs.webkit.org/show_bug.cgi?id=101279
     5
     6        Reviewed by Eric Seidel.
     7
     8        This patch makes DOMImplementation ScriptWrappable. Both the V8 and JSC
     9        bindings automatically detect the presence of this base class and use
     10        it to optimize getting and setting JavaScript wrappers.
     11
     12        This patch is a 23% progression on Bindings/document-implementation for
     13        the V8 bindings and a 69% progression for the JSC bindings.
     14
     15        * dom/DOMImplementation.h:
     16
    1172012-11-06  Benjamin Poulain  <benjamin@webkit.org>
    218
  • trunk/Source/WebCore/dom/DOMImplementation.h

    r128572 r133657  
    4343typedef int ExceptionCode;
    4444
    45 class DOMImplementation {
     45class DOMImplementation : public ScriptWrappable {
    4646    WTF_MAKE_FAST_ALLOCATED;
    4747public:
Note: See TracChangeset for help on using the changeset viewer.