From 329484693ae6d9dab6e01675faf7b535c2783a83 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 27 Nov 2007 01:02:30 +0000 Subject: * insns.def, compile.c: fix to allow dsym for alias/undef. [ruby-dev:32355] * bootstraptest/test_method.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'insns.def') diff --git a/insns.def b/insns.def index f5751ee721..7ffd56c369 100644 --- a/insns.def +++ b/insns.def @@ -751,18 +751,18 @@ definemethod */ DEFINE_INSN alias -(VALUE v_p, ID id1, ID id2) -() +(VALUE v_p) +(VALUE sym1, VALUE sym2) () { VALUE klass; if (v_p == Qtrue) { - rb_alias_variable(id1, id2); + rb_alias_variable(ID2SYM(sym1), SYM2ID(sym2)); } else { klass = get_cref(GET_ISEQ(), GET_LFP())->nd_clss; - rb_alias(klass, id1, id2); + rb_alias(klass, SYM2ID(sym1), SYM2ID(sym2)); } } @@ -773,12 +773,12 @@ alias */ DEFINE_INSN undef -(ID id) () +(VALUE sym) () { VALUE klass = get_cref(GET_ISEQ(), GET_LFP())->nd_clss; - rb_undef(klass, id); + rb_undef(klass, SYM2ID(sym)); INC_VM_STATE_VERSION(); } -- cgit v1.2.1