Name a constant

This commit is contained in:
Brian Carroll 2021-10-18 13:11:05 +02:00
parent 99468b0aac
commit 2daefc8b32

View file

@ -115,7 +115,9 @@ impl<'a> WasmBackend<'a> {
fn finalize_proc(&mut self, signature_builder: SignatureBuilder) -> FunctionDefinition { fn finalize_proc(&mut self, signature_builder: SignatureBuilder) -> FunctionDefinition {
self.end_block(); // end the block from start_proc, to ensure all paths pop stack memory (if any) self.end_block(); // end the block from start_proc, to ensure all paths pop stack memory (if any)
let mut final_instructions = Vec::with_capacity(self.code_builder.len() + 10); const STACK_FRAME_INSTRUCTIONS_LEN: usize = 10;
let mut final_instructions =
Vec::with_capacity(self.code_builder.len() + STACK_FRAME_INSTRUCTIONS_LEN);
if self.storage.stack_frame_size > 0 { if self.storage.stack_frame_size > 0 {
push_stack_frame( push_stack_frame(