Skip to content

Commit 0a634e2

Browse files
committed
ZJIT: Expand definition of unspecializable to more complex cases
1 parent 4889e82 commit 0a634e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

zjit/src/hir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5292,7 +5292,9 @@ fn unspecializable_c_call_type(flags: u32) -> bool {
52925292
/// If a given call uses overly complex arguments, then we won't specialize.
52935293
fn unspecializable_call_type(flags: u32) -> bool {
52945294
((flags & VM_CALL_ARGS_SPLAT) != 0) ||
5295-
((flags & VM_CALL_ARGS_BLOCKARG) != 0)
5295+
((flags & VM_CALL_KW_SPLAT) != 0) ||
5296+
((flags & VM_CALL_ARGS_BLOCKARG) != 0) ||
5297+
((flags & VM_CALL_FORWARDING) != 0)
52965298
}
52975299

52985300
/// We have IseqPayload, which keeps track of HIR Types in the interpreter, but this is not useful

0 commit comments

Comments
 (0)