summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 07:24:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 07:24:44 +0000
commit06513cc1cf5bbe1e23f871f920df7e2b7b793d9d (patch)
tree1dcf0ad338e0363cbf89f83c6b36b280fa40e49f /vm_insnhelper.h
parent82aa43407ca3f4096ec2be2a13869fb584775952 (diff)
* vm_insnhelper.h: remove magical code "lfp[0] & 0x02".
Current VM doesn't use this bit. * vm_core.h (RUBY_VM_GET_BLOCK_PTR): added. * eval.c (rb_block_given_p): use RUBY_VM_GET_BLOCK_PTR(). * vm_eval.c (rb_f_block_given_p): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 050b8d8..97e2b1e 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -170,9 +170,7 @@ extern VALUE ruby_vm_const_missing_count;
} \
} while (0)
-#define GET_BLOCK_PTR() \
- ((rb_block_t *)(GC_GUARDED_PTR_REF(GET_LFP()[0] & \
- ((GET_LFP()[0] & 0x02) - 0x02))))
+#define GET_BLOCK_PTR() ((rb_block_t *)(GC_GUARDED_PTR_REF(GET_LFP()[0])))
/**********************************************************/
/* deal with control flow 3: exception */