Delete verify_stack_match

This commit is contained in:
Brian Carroll 2023-11-05 22:21:14 +00:00
parent a76c4420fa
commit 664de9b285
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 5 additions and 25 deletions

View file

@ -436,14 +436,12 @@ impl<'a> Storage<'a> {
// If the symbols were already at the top of the stack, do nothing!
// Should be common for simple cases, due to the structure of the Mono IR
if !code_builder.verify_stack_match(&symbols_to_load) {
if matches!(return_method, WriteToPointerArg) {
self.load_return_address_ccc(code_builder, return_symbol);
};
if matches!(return_method, WriteToPointerArg) {
self.load_return_address_ccc(code_builder, return_symbol);
};
for arg in arguments {
self.load_symbol_ccc(code_builder, *arg);
}
for arg in arguments {
self.load_symbol_ccc(code_builder, *arg);
}
(num_wasm_args, has_return_val)