mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-04 02:51:33 +00:00
Add comment for call argument list preprocessing.
This commit is contained in:
@ -6885,6 +6885,10 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
|
|
||||||
self.machine.release_locations_only_osr_state(params.len());
|
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() {
|
while let Some(fp) = self.fp_stack.last() {
|
||||||
if fp.depth >= self.value_stack.len() {
|
if fp.depth >= self.value_stack.len() {
|
||||||
let index = fp.depth - self.value_stack.len();
|
let index = fp.depth - self.value_stack.len();
|
||||||
@ -6956,6 +6960,10 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
.collect();
|
.collect();
|
||||||
self.machine.release_locations_only_regs(¶ms);
|
self.machine.release_locations_only_regs(¶ms);
|
||||||
|
|
||||||
|
// 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() {
|
while let Some(fp) = self.fp_stack.last() {
|
||||||
if fp.depth >= self.value_stack.len() {
|
if fp.depth >= self.value_stack.len() {
|
||||||
let index = fp.depth - self.value_stack.len();
|
let index = fp.depth - self.value_stack.len();
|
||||||
|
Reference in New Issue
Block a user