Skip to main content

luaur_bytecode/methods/
call_inliner_allocate_instructions.rs

1use crate::records::call_inliner::CallInliner;
2
3impl<'a> CallInliner<'a> {
4    pub(crate) fn allocate_instructions(&mut self) {
5        self.caller_inst_size_before_inline = self.caller.instructions.len() as u32;
6        self.caller.instructions.resize(
7            self.caller_inst_size_before_inline as usize + self.target.instructions.len(),
8            Default::default(),
9        );
10    }
11}