Bug 735519 - Fix a bunch of "inlined function used but not defined" warnings. r=dmandelin
authorSteve Fink <sfink@mozilla.com>
Wed, 14 Mar 2012 12:28:48 -0700
changeset 92783 0c65a492f739044b2cf55cd04618e849ff33cbe0
parent 92742 29022cdb007df917fbc2df44563db4c7b6978c54
child 92784 3b0a290d5ff9c2ab1ba4688902eb575ec1960fbf
push idunknown
push userunknown
push dateunknown
reviewersdmandelin
bugs735519
milestone14.0a1
Bug 735519 - Fix a bunch of "inlined function used but not defined" warnings. r=dmandelin
js/src/jsprobes.h
js/src/jstypedarray.cpp
js/src/jstypedarray.h
js/src/vm/GlobalObject.h
js/src/vm/String-inl.h
--- a/js/src/jsprobes.h
+++ b/js/src/jsprobes.h
@@ -47,16 +47,18 @@
 #include "jsprvtd.h"
 #include "jsscript.h"
 #include "jsobj.h"
 
 #ifdef JS_METHODJIT
 #include "methodjit/MethodJIT.h"
 #endif
 
+#include "vm/ObjectImpl-inl.h"
+
 namespace js {
 
 namespace mjit {
 struct NativeAddressInfo;
 struct JSActiveFrame;
 }
 
 namespace Probes {
--- a/js/src/jstypedarray.cpp
+++ b/js/src/jstypedarray.cpp
@@ -2452,17 +2452,17 @@ InitArrayBufferClass(JSContext *cx, Glob
         return NULL;
 
     if (!DefineConstructorAndPrototype(cx, global, JSProto_ArrayBuffer, ctor, arrayBufferProto))
         return NULL;
 
     return arrayBufferProto;
 }
 
-JS_FRIEND_API(JSObject *)
+JSObject *
 js_InitTypedArrayClasses(JSContext *cx, JSObject *obj)
 {
     JS_ASSERT(obj->isNative());
 
     GlobalObject *global = &obj->asGlobal();
 
     /* Idempotency required: we initialize several things, possibly lazily. */
     JSObject *stop;
--- a/js/src/jstypedarray.h
+++ b/js/src/jstypedarray.h
@@ -285,19 +285,16 @@ struct JS_FRIEND_API(TypedArray) {
 
 extern bool
 IsFastTypedArrayClass(const Class *clasp);
 
 } // namespace js
 
 /* Friend API methods */
 
-JS_FRIEND_API(JSObject *)
-js_InitTypedArrayClasses(JSContext *cx, JSObject *obj);
-
 JS_FRIEND_API(JSBool)
 js_IsTypedArray(JSObject *obj);
 
 JS_FRIEND_API(JSBool)
 js_IsArrayBuffer(JSObject *obj);
 
 JS_FRIEND_API(JSObject *)
 js_CreateArrayBuffer(JSContext *cx, uint32_t nbytes);
--- a/js/src/vm/GlobalObject.h
+++ b/js/src/vm/GlobalObject.h
@@ -44,28 +44,30 @@
 #include "mozilla/Attributes.h"
 
 #include "jsarray.h"
 #include "jsbool.h"
 #include "jsexn.h"
 #include "jsfun.h"
 #include "jsiter.h"
 #include "jsnum.h"
-#include "jstypedarray.h"
 
 #include "js/Vector.h"
 
 #include "builtin/RegExp.h"
 
 extern JSObject *
 js_InitObjectClass(JSContext *cx, JSObject *obj);
 
 extern JSObject *
 js_InitFunctionClass(JSContext *cx, JSObject *obj);
 
+extern JSObject *
+js_InitTypedArrayClasses(JSContext *cx, JSObject *obj);
+
 namespace js {
 
 class Debugger;
 
 /*
  * Global object slots are reserved as follows:
  *
  * [0, JSProto_LIMIT)
--- a/js/src/vm/String-inl.h
+++ b/js/src/vm/String-inl.h
@@ -43,16 +43,18 @@
 
 #include "jscntxt.h"
 #include "jsgcmark.h"
 #include "jsprobes.h"
 
 #include "String.h"
 
 #include "jsgcinlines.h"
+#include "jsobjinlines.h"
+#include "gc/Barrier-inl.h"
 
 inline void
 JSString::writeBarrierPre(JSString *str)
 {
 #ifdef JSGC_INCREMENTAL
     if (!str)
         return;