summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:50:15 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:50:15 (GMT)
commited130faf2878c383cab52fa5ed887837e04f303d (patch)
treeae6d0fa8b687b57f94bc71b1d812b8c44ad94025 /vm.c
parent46cdb8f18766383a9e11b5a6e9a0c010e7e8653a (diff)
* proc.c: use RUBY_VM_IFUNC_P() to recognize IFUNC or not.
* vm.c: ditto. * vm_dump.c: ditto. * vm_insnhelper.c: ditto. * vm_core.h: use RB_TYPE_P() instead of BUILTIN_TYPE(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 9529321..521809f 100644
--- a/vm.c
+++ b/vm.c
@@ -413,7 +413,7 @@ env_mark(void * const ptr)
RUBY_MARK_UNLESS_NULL(env->block.proc);
if (env->block.iseq) {
- if (BUILTIN_TYPE(env->block.iseq) == T_NODE) {
+ if (RUBY_VM_IFUNC_P(env->block.iseq)) {
RUBY_MARK_UNLESS_NULL((VALUE)env->block.iseq);
}
else {
@@ -801,7 +801,7 @@ invoke_block_from_c(rb_thread_t *th, const rb_block_t *block,
if (SPECIAL_CONST_P(block->iseq)) {
return Qnil;
}
- else if (BUILTIN_TYPE(block->iseq) != T_NODE) {
+ else if (!RUBY_VM_IFUNC_P(block->iseq)) {
VALUE ret;
const rb_iseq_t *iseq = block->iseq;
const rb_control_frame_t *cfp;