Add back typedef for JSTraceMonitor (compilation fix for legacy C use of JS engine includes, no bug).
authorAndreas Gal <gal@mozilla.com>
Fri, 07 Nov 2008 16:58:36 -0800
changeset 21525 c7526e1cad3a7cb97601751d083ef627d0daf2dc
parent 21524 594ec832d9a85baa236a826321dde2c0a29f09e4
child 21527 85f93f1826a988783042a60024bdd17519b3d3be
push id3558
push userrsayre@mozilla.com
push dateSat, 08 Nov 2008 09:06:43 +0000
treeherdermozilla-central@17747605490c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1b2pre
Add back typedef for JSTraceMonitor (compilation fix for legacy C use of JS engine includes, no bug).
js/src/jscntxt.h
--- a/js/src/jscntxt.h
+++ b/js/src/jscntxt.h
@@ -108,17 +108,17 @@ class TypeMap;
 # define CLS(T)  void*
 #endif
 
 /*
  * Trace monitor. Every JSThread (if JS_THREADSAFE) or JSRuntime (if not
  * JS_THREADSAFE) has an associated trace monitor that keeps track of loop
  * frequencies for all JavaScript code loaded into that runtime.
  */
-struct JSTraceMonitor {
+typedef struct JSTraceMonitor {
     /*
      * Flag set when running (or recording) JIT-compiled code. This prevents
      * both interpreter activation and last-ditch garbage collection when up
      * against our runtime's memory limits. This flag also suppresses calls to
      * JS_ReportOutOfMemory when failing due to runtime limits.
      */
     JSBool                  onTrace;
     CLS(nanojit::Fragmento) fragmento;
@@ -128,17 +128,17 @@ struct JSTraceMonitor {
     CLS(TypeMap)            globalTypeMap;
     jsval                   *recoveryDoublePool;
     jsval                   *recoveryDoublePoolPtr;
 
     /* Fragmento for the regular expression compiler. This is logically
      * a distinct compiler but needs to be managed in exactly the same
      * way as the real tracing Fragmento. */
     CLS(nanojit::Fragmento) reFragmento;
-};
+} JSTraceMonitor;
 
 #ifdef JS_TRACER
 # define JS_ON_TRACE(cx)   (JS_TRACE_MONITOR(cx).onTrace)
 #else
 # define JS_ON_TRACE(cx)   JS_FALSE
 #endif
 
 #ifdef JS_THREADSAFE