summaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-04 19:17:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-04 19:17:33 +0000
commit44133346923781aaa1022d9b881aeb4e58dd5940 (patch)
tree3f74f159fcc7abf2e87ff7295e6400651a26a8c4 /iseq.c
parent11703607ac25a15def2197bb91e53b4b0d7cf84d (diff)
downloadruby-44133346923781aaa1022d9b881aeb4e58dd5940.tar.gz
ruby-44133346923781aaa1022d9b881aeb4e58dd5940.tar.xz
ruby-44133346923781aaa1022d9b881aeb4e58dd5940.zip
* parse.y (rb_compose_ivar2): function to create a new ivar2
symbol from a symbol and a class. back-ported from matzruby. * parse.y (rb_decompose_ivar2): reverse function of rb_compose_ivar2(). * marshal.c (w_symbol): support class local instance variables. * marshal.c (r_object0): ditto. * compile.c (defined_expr): ditto. * compile.c (iseq_compile_each): ditto. * insns.def: add two new instructions: getinstancevariable2 and setinstancevariable2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 0b53f0b83..9932491d1 100644
--- a/iseq.c
+++ b/iseq.c
@@ -863,6 +863,8 @@ node_name(int node)
return "NODE_GASGN";
case NODE_IASGN:
return "NODE_IASGN";
+ case NODE_IASGN2:
+ return "NODE_IASGN2";
case NODE_CDECL:
return "NODE_CDECL";
case NODE_CVASGN:
@@ -905,6 +907,8 @@ node_name(int node)
return "NODE_GVAR";
case NODE_IVAR:
return "NODE_IVAR";
+ case NODE_IVAR2:
+ return "NODE_IVAR2";
case NODE_CONST:
return "NODE_CONST";
case NODE_CVAR: