Commit e043972a authored by abarth@webkit.org's avatar abarth@webkit.org

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:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7c0b9a7e
<!DOCTYPE html>
<html>
<body>
<script src="../resources/runner.js"></script>
<script>
PerfTestRunner.measureRunsPerSecond({
description: "This benchmark repeatedly accesses document.implementation.",
run: function() {
for (var i = 0; i < 100000; ++i)
document.implementation;
}});
</script>
</body>
</html>
2012-11-06 Adam Barth <abarth@webkit.org>
DOMImplementation should use ScriptWrappable
https://bugs.webkit.org/show_bug.cgi?id=101279
Reviewed by Eric Seidel.
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.
2012-11-05 Geoffrey Garen <ggaren@apple.com>
WebKit should have performance tests for book chapter reflow
......
2012-11-06 Adam Barth <abarth@webkit.org>
DOMImplementation should use ScriptWrappable
https://bugs.webkit.org/show_bug.cgi?id=101279
Reviewed by Eric Seidel.
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:
2012-11-06 Benjamin Poulain <benjamin@webkit.org>
Speed up TransformationMatrix::multiply() on modern ARM
......@@ -42,7 +42,7 @@ class RegularExpression;
typedef int ExceptionCode;
class DOMImplementation {
class DOMImplementation : public ScriptWrappable {
WTF_MAKE_FAST_ALLOCATED;
public:
static PassOwnPtr<DOMImplementation> create(Document* document) { return adoptPtr(new DOMImplementation(document)); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment