diff options
-rw-r--r-- | vm_insnhelper.c | 4 | ||||
-rw-r--r-- | vm_insnhelper.h | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index bf886f71f8..d581a59027 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2511,12 +2511,12 @@ vm_search_super_method(const rb_execution_context_t *ec, rb_control_frame_t *reg if (!klass) { /* bound instance method of module */ cc->aux.method_missing_reason = MISSING_SUPER; - CI_SET_FASTPATH(cc, vm_call_method_missing, 1); + CI_SET_FASTPATH(cc, vm_call_method_missing, TRUE); } else { /* TODO: use inline cache */ cc->me = rb_callable_method_entry(klass, ci->mid); - CI_SET_FASTPATH(cc, vm_call_super_method, 1); + CI_SET_FASTPATH(cc, vm_call_super_method, TRUE); } } diff --git a/vm_insnhelper.h b/vm_insnhelper.h index b5f35df2bd..6c1de01a62 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -178,17 +178,9 @@ enum vm_regan_acttype { * because inline method cache does not care about receiver. */ -#ifndef OPT_CALL_FASTPATH -#define OPT_CALL_FASTPATH 1 -#endif - -#if OPT_CALL_FASTPATH #define CI_SET_FASTPATH(cc, func, enabled) do { \ if (LIKELY(enabled)) ((cc)->call = (func)); \ } while (0) -#else -#define CI_SET_FASTPATH(ci, func, enabled) /* do nothing */ -#endif #define GET_BLOCK_HANDLER() (GET_LEP()[VM_ENV_DATA_INDEX_SPECVAL]) |