Fix the usual --disable-methodjit problems

This commit is contained in:
Bill McCloskey 2011-02-14 19:01:11 -08:00
parent 8370276722
commit b4cd8f9178
2 changed files with 5 additions and 1 deletions

View File

@ -2314,8 +2314,10 @@ TraceRecorder::TraceRecorder(JSContext* cx, TraceMonitor *tm,
JS_ASSERT(globalObj->hasOwnShape()); JS_ASSERT(globalObj->hasOwnShape());
JS_ASSERT(cx->regs->pc == (jsbytecode*)fragment->ip); JS_ASSERT(cx->regs->pc == (jsbytecode*)fragment->ip);
#ifdef JS_METHODJIT
if (TRACE_PROFILER(cx)) if (TRACE_PROFILER(cx))
AbortProfiling(cx); AbortProfiling(cx);
#endif
JS_ASSERT(JS_THREAD_DATA(cx)->onTraceCompartment == NULL); JS_ASSERT(JS_THREAD_DATA(cx)->onTraceCompartment == NULL);
JS_ASSERT(JS_THREAD_DATA(cx)->profilingCompartment == NULL); JS_ASSERT(JS_THREAD_DATA(cx)->profilingCompartment == NULL);
@ -6496,8 +6498,10 @@ TracerState::TracerState(JSContext* cx, TraceMonitor* tm, TreeFragment* f,
prev = tm->tracerState; prev = tm->tracerState;
tm->tracerState = this; tm->tracerState = this;
#ifdef JS_METH
if (TRACE_PROFILER(cx)) if (TRACE_PROFILER(cx))
AbortProfiling(cx); AbortProfiling(cx);
#endif
JS_ASSERT(JS_THREAD_DATA(cx)->onTraceCompartment == NULL); JS_ASSERT(JS_THREAD_DATA(cx)->onTraceCompartment == NULL);
JS_ASSERT(JS_THREAD_DATA(cx)->recordingCompartment == NULL || JS_ASSERT(JS_THREAD_DATA(cx)->recordingCompartment == NULL ||

View File

@ -38,7 +38,7 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#if !defined jsjaeger_logging_h__ && defined JS_METHODJIT #if !defined jsjaeger_logging_h__ && (defined JS_METHODJIT || defined JS_TRACER)
#define jsjaeger_logging_h__ #define jsjaeger_logging_h__
#include "prmjtime.h" #include "prmjtime.h"