summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 14:32:33 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 14:32:33 +0000
commitac88162198a6b5f1b8f3e17eaac5fe4b0b411934 (patch)
tree3db38b1785a4c8fb8dfcbb4b187c67971fa7ee92 /proc.c
parent8ff3ab515cc291cd7309352836f73235597faaa5 (diff)
* method.h: remove rb_method_iseq_t::iseqval.
While making a r50728, iseqval is needed (to mark correctly), but now just iseqptr is enough. * class.c: catch up this fix. * gc.c: ditto. * proc.c: ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/proc.c b/proc.c
index 73baf55..3d05264 100644
--- a/proc.c
+++ b/proc.c
@@ -2046,8 +2046,7 @@ rb_method_entry_min_max_arity(const rb_method_entry_t *me, int *max)
case VM_METHOD_TYPE_BMETHOD:
return rb_proc_min_max_arity(def->body.proc, max);
case VM_METHOD_TYPE_ISEQ: {
- rb_iseq_t *iseq;
- GetISeqPtr(def->body.iseq.iseqval, iseq);
+ rb_iseq_t *iseq = def->body.iseq.iseqptr;
return rb_iseq_min_max_arity(iseq, max);
}
case VM_METHOD_TYPE_UNDEF:
@@ -2183,11 +2182,7 @@ method_def_iseq(const rb_method_definition_t *def)
{
switch (def->type) {
case VM_METHOD_TYPE_ISEQ:
- {
- rb_iseq_t *iseq;
- GetISeqPtr(def->body.iseq.iseqval, iseq);
- return iseq;
- }
+ return def->body.iseq.iseqptr;
case VM_METHOD_TYPE_BMETHOD:
return get_proc_iseq(def->body.proc, 0);
case VM_METHOD_TYPE_ALIAS: