mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 776880 - Fix dropArguments call in CallConstructor to include |this|. r=dvander
This commit is contained in:
parent
97705238c0
commit
9c9d8f999b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user