Bug 773731 - Fix UseNewType pattern matching. (r=bhackett)

This commit is contained in:
Kannan Vijayan 2012-07-16 15:36:12 -04:00
parent a262ed104f
commit 9ed44eabd2

View File

@ -2455,6 +2455,8 @@ BEGIN_CASE(JSOP_FUNCALL)
InitialFrameFlags initial = construct ? INITIAL_CONSTRUCT : INITIAL_NONE;
bool newType = cx->typeInferenceEnabled() && UseNewType(cx, script, regs.pc);
JSScript *newScript = fun->script();
if (newScript->compileAndGo && newScript->hasClearedGlobal()) {
@ -2468,8 +2470,6 @@ BEGIN_CASE(JSOP_FUNCALL)
SET_SCRIPT(regs.fp()->script());
RESET_USE_METHODJIT();
bool newType = cx->typeInferenceEnabled() && UseNewType(cx, script, regs.pc);
#ifdef JS_METHODJIT
if (!newType) {
/* Try to ensure methods are method JIT'd. */