Fix a link error in unofficial GCC 4.4 builds on Linux.
authorsnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2009 21:26:38 +0000 (21:26 +0000)
committersnej@chromium.org <snej@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2009 21:26:38 +0000 (21:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=31477

Reviewed by Dimitri Glazkov.

* bindings/v8/V8Binding.cpp:  Add explicit instantiations of v8StringToWebCoreString template.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50967 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/v8/V8Binding.cpp

index 7d50f01d033142ed1a55b587b2ce0b83a7268998..3f37c700bcf7c79ff513d734e3f4e5dce7201966 100644 (file)
@@ -1,3 +1,12 @@
+2009-11-13  Jens Alfke  <snej@chromium.org>
+
+        Reviewed by Dimitri Glazkov.
+
+        Fix a link error in unofficial GCC 4.4 builds on Linux.
+        https://bugs.webkit.org/show_bug.cgi?id=31477
+
+        * bindings/v8/V8Binding.cpp:  Add explicit instantiations of v8StringToWebCoreString template.
+
 2009-11-13  Eric Seidel  <eric@webkit.org>
 
         No review, build fix only.
index f069c03fae0c803f213f1040039fbb66d2dd9024..c25a81c4716d06d667e662d27652a9cb1967baf6 100644 (file)
@@ -279,6 +279,12 @@ StringType v8StringToWebCoreString(v8::Handle<v8::String> v8String, ExternalMode
     }
     return result;
 }
+    
+// Explicitly instantiate the above template with the expected parameterizations,
+// to ensure the compiler generates the code; otherwise link errors can result in GCC 4.4.
+template String v8StringToWebCoreString<String>(v8::Handle<v8::String>, ExternalMode);
+template AtomicString v8StringToWebCoreString<AtomicString>(v8::Handle<v8::String>, ExternalMode);
+
 
 String v8NonStringValueToWebCoreString(v8::Handle<v8::Value> object)
 {