diff options
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r-- | vm_insnhelper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h index c6b2fbefdb..7e111d1b1e 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -200,6 +200,13 @@ enum vm_regan_acttype { } \ } while (0) +/* set fastpath when cached method is *NOT* protected + * because inline method cache does not care about receiver. + */ +#define CI_SET_FASTPATH(ci, func) do { \ + if (!(((ci)->me->flag & NOEX_MASK) & NOEX_PROTECTED)) ((ci)->call = (func)); \ +} while (0) + #define GET_BLOCK_PTR() ((rb_block_t *)(GC_GUARDED_PTR_REF(GET_LEP()[0]))) /**********************************************************/ |