From 6b534134a78e3e43c344682c3585e1abab015216 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 27 Jun 2018 09:28:09 +0000 Subject: give up insn attr handles_frame I introduced this mechanism in r62051 to speed things up. Later it was reported that the change causes problems. I searched for workarounds but nothing seemed appropriate. I hereby officially give it up. The idea to move ADD_PC around was a mistake. Fixes [Bug #14809] and [Bug #14834]. Signed-off-by: Urabe, Shyouhei git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 25bd92f6fd..18e6139a03 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -111,8 +111,6 @@ enum vm_regan_acttype { #define INC_SP(x) (VM_REG_SP += (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x)))) #define DEC_SP(x) (VM_REG_SP -= (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x)))) #define SET_SV(x) (*GET_SP() = (x)) - /* set current stack value as x */ -#define ADJ_SP(x) INC_SP(x) /* instruction sequence C struct */ #define GET_ISEQ() (GET_CFP()->iseq) @@ -192,6 +190,9 @@ enum vm_regan_acttype { #define GET_BLOCK_HANDLER() (GET_LEP()[VM_ENV_DATA_INDEX_SPECVAL]) +#define WIDTH_OF_opt_send_without_block \ + ((rb_snum_t)attr_width_opt_send_without_block(0, 0)) + /**********************************************************/ /* deal with control flow 3: exception */ /**********************************************************/ -- cgit v1.2.3