De-inline convertNodeToV8Object(), which expands to a lot of asm code and is inlined 136
[WebKit-https.git] / WebCore / bindings / v8 / V8DOMWrapper.h
index 9ba888f9d69b4aed72cda52f5a27cbc790c6b294..7ca2e63edcc7a2fde51c990332d19a345f4c3bc8 100644 (file)
@@ -147,22 +147,7 @@ namespace WebCore {
             return convertNodeToV8Object(node.get());
         }
 
-        static v8::Handle<v8::Value> convertNodeToV8Object(Node* node)
-        {
-            if (!node)
-                return v8::Null();
-
-            Document* document = node->document();
-            if (node == document)
-                return convertDocumentToV8Object(document);
-
-            DOMWrapperMap<Node>& domNodeMap = getDOMNodeMap();
-            v8::Handle<v8::Object> wrapper = domNodeMap.get(node);
-            if (wrapper.IsEmpty())
-                return convertNewNodeToV8Object(node, 0, domNodeMap);
-
-            return wrapper;
-        }
+        static v8::Handle<v8::Value> convertNodeToV8Object(Node*);
 
         static v8::Handle<v8::Value> convertDocumentToV8Object(Document*);