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,8 +4825,13 @@ fn gen_send_general(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
METHOD_VISI_PROTECTED => {
|
METHOD_VISI_PROTECTED => {
|
||||||
|
// 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);
|
jit_protected_callee_ancestry_guard(jit, cb, ocb, cme, side_exit);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
panic!("cmes should always have a visibility!");
|
panic!("cmes should always have a visibility!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user