aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-07 02:27:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-07 02:27:41 +0000
commit3af0c9fe2362531a55979d77a23d12a895456582 (patch)
tree842f782ad31311302595371b3bfb78311fd9fedd /iseq.c
parentbbf740aea21ee3f5ea8bee2081eea1067e7e76bc (diff)
downloadruby-3af0c9fe2362531a55979d77a23d12a895456582.tar.gz
* iseq.c, internal.h (rb_iseq_clone): removed because we don't need to
clone iseq any more. * class.c (clone_method): share iseq between cloned methods. All of method dependent information are able to refer from method entry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/iseq.c b/iseq.c
index d071815353..ee66e48e1d 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1931,30 +1931,6 @@ iseq_data_to_ary(rb_iseq_t *iseq)
}
VALUE
-rb_iseq_clone(VALUE iseqval, VALUE newcbase)
-{
- VALUE newiseq = iseq_alloc(rb_cISeq);
- rb_iseq_t *iseq0, *iseq1;
-
- GetISeqPtr(iseqval, iseq0);
- GetISeqPtr(newiseq, iseq1);
-
- MEMCPY(iseq1, iseq0, rb_iseq_t, 1);
-
- iseq1->self = newiseq;
- if (!iseq1->orig) {
- RB_OBJ_WRITE(iseq1->self, &iseq1->orig, iseqval);
- }
- if (iseq0->local_iseq == iseq0) {
- iseq1->local_iseq = iseq1;
- }
-
- RB_GC_GUARD(iseqval); /* seems necessary iff RGenGC is disabled */
-
- return newiseq;
-}
-
-VALUE
rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
{
int i, r;