diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-25 06:58:50 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-25 06:58:50 +0000 |
commit | 8dd0fb9039bbe6152ea5542e6bc70de152871e23 (patch) | |
tree | 3a8c658692e6692095195b081687cf92055a74e9 /vm_core.h | |
parent | 9f05891c3daa79e26dd01f0575f1b595ddb7d302 (diff) |
use cfp->bp more.
cfp->bp was (re-)introduced by Kokubun san, but VM doesn't use it
because I (ko1) want to remove it in a future. But using it make
leave instruction fast because of sp consisntency check.
So now VM uses cfp->bp.
To use cfp->bp, I checked the value and I found that it is not a
"initial value of sp" but a "initial value of ep". Fix this problem
and fix all bp references (this is why bp is renamed to bp_).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -763,7 +763,7 @@ typedef struct rb_control_frame_struct { VALUE self; /* cfp[3] / block[0] */ const VALUE *ep; /* cfp[4] / block[1] */ const void *block_code; /* cfp[5] / block[2] */ /* iseq or ifunc */ - const VALUE *bp; /* cfp[6] */ + VALUE *bp_; /* cfp[6] */ #if VM_DEBUG_BP_CHECK VALUE *bp_check; /* cfp[7] */ |