Bug 862184 - Don't check for extra parallel array bailouts if --no-baseline or --baseline-eager are used.

This commit is contained in:
Brian Hackett 2013-04-18 09:51:36 -06:00
parent e072b3f322
commit ca5b7ec1f2

View File

@ -20,6 +20,8 @@
#include "jsfuninlines.h"
#include "jstypedarrayinlines.h"
#include "ion/BaselineJIT.h"
#include "vm/BooleanObject-inl.h"
#include "vm/NumberObject-inl.h"
#include "vm/RegExpObject-inl.h"
@ -416,7 +418,9 @@ intrinsic_ParallelTestsShouldPass(JSContext *cx, unsigned argc, Value *vp)
CallArgs args = CallArgsFromVp(argc, vp);
#if defined(JS_THREADSAFE) && defined(JS_ION)
args.rval().setBoolean(ion::IsEnabled(cx) &&
!ion::js_IonOptions.eagerCompilation);
ion::IsBaselineEnabled(cx) &&
!ion::js_IonOptions.eagerCompilation &&
ion::js_IonOptions.baselineUsesBeforeCompile != 0);
#else
args.rval().setBoolean(false);
#endif