Add comment for call argument list preprocessing.

This commit is contained in:
losfair
2020-03-18 23:41:10 +08:00
parent 8485ccc88c
commit c25ba627df

View File

@ -6885,6 +6885,10 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
self.machine.release_locations_only_osr_state(params.len());
// Pop arguments off the FP stack and canonicalize them if needed.
//
// Canonicalization state will be lost across function calls, so early canonicalization
// is necessary here.
while let Some(fp) = self.fp_stack.last() {
if fp.depth >= self.value_stack.len() {
let index = fp.depth - self.value_stack.len();
@ -6956,6 +6960,10 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
.collect();
self.machine.release_locations_only_regs(&params);
// Pop arguments off the FP stack and canonicalize them if needed.
//
// Canonicalization state will be lost across function calls, so early canonicalization
// is necessary here.
while let Some(fp) = self.fp_stack.last() {
if fp.depth >= self.value_stack.len() {
let index = fp.depth - self.value_stack.len();