luaur_bytecode/methods/bytecode_graph_parser_add_proto_input.rs
1use crate::enums::bc_op_kind::BcOpKind;
2use crate::records::bc_inst::BcInst;
3use crate::records::bc_op::BcOp;
4use crate::records::bytecode_graph_parser::BytecodeGraphParser;
5
6impl<'a> BytecodeGraphParser<'a> {
7 pub fn add_proto_input(&mut self, inst: *mut BcInst, idx: u32) {
8 let inst = unsafe { &mut *inst };
9 inst.ops
10 .push_back(BcOp::bc_op_bc_op_kind_u32(BcOpKind::VmProto, idx));
11 }
12}