Bug 776880 - Fix dropArguments call in CallConstructor to include |this|. r=dvander

This commit is contained in:
Jan de Mooij 2012-07-30 20:37:14 +02:00
parent 97705238c0
commit 9c9d8f999b

View File

@ -750,7 +750,7 @@ CodeGenerator::visitCallConstructor(LCallConstructor *call)
// Un-nestle %esp from the argument vector. No prefix was pushed.
masm.reserveStack(unusedStack);
dropArguments(call->numStackArgs());
dropArguments(call->numStackArgs() + 1);
return true;
}
@ -1133,6 +1133,8 @@ CodeGenerator::generateBody()
if (masm.oom())
return false;
}
JS_ASSERT(pushedArgumentSlots_.empty());
return true;
}