Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4165)

Unified Diff: bindings/v8/V8Proxy.h

Issue 151078: Speed up creation of DOM node wrappers (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bindings/v8/V8Proxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bindings/v8/V8Proxy.h
===================================================================
--- bindings/v8/V8Proxy.h (revision 45352)
+++ bindings/v8/V8Proxy.h (working copy)
@@ -185,7 +185,7 @@
GeneralError
};
- explicit V8Proxy(Frame* frame) : m_frame(frame), m_inlineCode(false), m_timerCallback(false), m_recursion(0) { }
+ explicit V8Proxy(Frame* frame) : m_frame(frame), m_domNodeMap(getDOMNodeMap()), m_inlineCode(false), m_timerCallback(false), m_recursion(0) { }
~V8Proxy();
@@ -556,8 +556,14 @@
// For example, a HTML element has HTMLELEMENT for the first V8WrapperType, but always
// use NODE as the second V8WrapperType. JS wrapper stores the second
// V8WrapperType and the void* as internal fields.
- static v8::Local<v8::Object> instantiateV8Object(V8ClassIndex::V8WrapperType, V8ClassIndex::V8WrapperType, void*);
+ static v8::Local<v8::Object> instantiateV8Object(V8ClassIndex::V8WrapperType descType, V8ClassIndex::V8WrapperType cptrType, void* impl)
+ {
+ return instantiateV8Object(NULL, descType, cptrType, impl);
+ }
+ static v8::Local<v8::Object> instantiateV8Object(V8Proxy*, V8ClassIndex::V8WrapperType, V8ClassIndex::V8WrapperType, void*);
+
+
static const char* rangeExceptionName(int exceptionCode);
static const char* eventExceptionName(int exceptionCode);
static const char* xmlHttpRequestExceptionName(int exceptionCode);
@@ -595,6 +601,8 @@
v8::Persistent<v8::Object> m_global;
v8::Persistent<v8::Value> m_document;
+ DOMWrapperMap<Node>& m_domNodeMap;
+
// Utility context holding JavaScript functions used internally.
static v8::Persistent<v8::Context> m_utilityContext;
« no previous file with comments | « no previous file | bindings/v8/V8Proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698