Fix --disable-methodjit build. (r=billm)

--HG--
extra : rebase_source : 4a76e8513611d8eb9ad16d5d3c0465692bfa4105
This commit is contained in:
Chris Leary 2011-02-11 13:45:56 -08:00
parent f054d767fb
commit 2ee477a69c
2 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,10 @@
#include "jsgcinlines.h"
#if ENABLE_YARR_JIT
#include "assembler/jit/ExecutableAllocator.h"
#endif
using namespace js;
using namespace js::gc;

View File

@ -585,8 +585,8 @@ InvokeSessionGuard::invoke(JSContext *cx) const
formals_[-2] = savedCallee_;
formals_[-1] = savedThis_;
void *code;
#ifdef JS_METHODJIT
void *code;
if (!optimized() || !(code = script_->getJIT(false /* !constructing */)->invokeEntry))
#else
if (!optimized())