bug 558861 - followup to add missing explicit template instantiations for assureThingIsAligned
authorIgor Bukanov <igor@mir2.org>
Sat, 25 Sep 2010 11:42:25 +0200
changeset 54714 a6232ac986de00b099e40a3229cf19c62f6b8154
parent 54713 97f175be11e9dae4df57021fd87b0cde85a59f34
child 54715 9a25714382f44f4b33e9a69a25c5ec876767eb03
push id16011
push userrsayre@mozilla.com
push dateWed, 29 Sep 2010 06:01:57 +0000
treeherdermozilla-central@d7e659b4f80c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs558861
milestone2.0b7pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 558861 - followup to add missing explicit template instantiations for assureThingIsAligned
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -214,16 +214,39 @@ Arena<T>::getAlignedThing(T *thing)
 
 #ifdef DEBUG
 template <typename T>
 bool
 Arena<T>::assureThingIsAligned(T *thing)
 {
     return (getAlignedThing(thing) == thing);
 }
+
+template
+bool
+Arena<JSObject>::assureThingIsAligned(JSObject *thing);
+
+template
+bool
+Arena<JSFunction>::assureThingIsAligned(JSFunction *thing);
+
+template
+bool
+Arena<JSString>::assureThingIsAligned(JSString *thing);
+
+template
+bool
+Arena<JSShortString>::assureThingIsAligned(JSShortString *thing);
+
+#if JS_HAS_XML_SUPPORT
+template
+bool
+Arena<JSXML>::assureThingIsAligned(JSXML *thing);
+#endif
+
 #endif
 
 template<typename T>
 inline ConservativeGCTest
 Arena<T>::mark(T *thing, JSTracer *trc)
 {
     thing = getAlignedThing(thing);