Skip to main content

luaur_bytecode/methods/
call_inliner_allocate_protos.rs

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