diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 13:04:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 13:04:22 +0000 |
commit | 6e572060eba0d526125bf3044104747062f6f79a (patch) | |
tree | 6833f827b72e7dfae01a2afb6030b538c286e6cc /insnhelper.ci | |
parent | 28c0aec1d889cfb3447c708a790b0acb95607e2f (diff) | |
download | ruby-6e572060eba0d526125bf3044104747062f6f79a.tar.gz |
* vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.
* insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.ci')
-rw-r--r-- | insnhelper.ci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/insnhelper.ci b/insnhelper.ci index bfbbe6f418..82731829c6 100644 --- a/insnhelper.ci +++ b/insnhelper.ci @@ -355,7 +355,7 @@ vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp, int num, EXEC_EVENT_HOOK(th, RUBY_EVENT_C_CALL, recv, id, klass); { rb_control_frame_t *cfp = - vm_push_frame(th, 0, FRAME_MAGIC_CFUNC | flag * (FRAME_MAGIC_MASK + 1), + vm_push_frame(th, 0, FRAME_MAGIC_CFUNC | (flag << FRAME_MAGIC_MASK_BITS), recv, (VALUE) blockptr, 0, reg_cfp->sp, 0, 1); cfp->method_id = id; @@ -379,7 +379,7 @@ static int vm_cfunc_flags(rb_control_frame_t *cfp) { if (RUBYVM_CFUNC_FRAME_P(cfp)) - return cfp->flag / (FRAME_MAGIC_MASK + 1); + return cfp->flag >> FRAME_MAGIC_MASK_BITS; return 0; } |