Skip to main content

luaur_code_gen/functions/
is_fast_call.rs

1use luaur_common::enums::luau_opcode::LuauOpcode;
2
3pub fn is_fast_call(op: LuauOpcode) -> bool {
4    match op {
5        LuauOpcode::LOP_FASTCALL
6        | LuauOpcode::LOP_FASTCALL1
7        | LuauOpcode::LOP_FASTCALL2
8        | LuauOpcode::LOP_FASTCALL2K
9        | LuauOpcode::LOP_FASTCALL3 => true,
10        _ => false,
11    }
12}