Skip protected ancestry guard for FCALLs in YJIT
This commit is contained in:
parent
9312f4bf62
commit
0c1f64396f
Notes:
git
2022-06-22 10:34:16 +09:00
@ -4825,7 +4825,12 @@ fn gen_send_general(
|
||||
}
|
||||
}
|
||||
METHOD_VISI_PROTECTED => {
|
||||
jit_protected_callee_ancestry_guard(jit, cb, ocb, cme, side_exit);
|
||||
// If the method call is an FCALL, it is always valid
|
||||
if flags & VM_CALL_FCALL == 0 {
|
||||
// otherwise we need an ancestry check to ensure the receiver is vaild to be called
|
||||
// as protected
|
||||
jit_protected_callee_ancestry_guard(jit, cb, ocb, cme, side_exit);
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
panic!("cmes should always have a visibility!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user