diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 12:19:00 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 12:19:00 +0000 |
commit | 7a37c70f2f5b0b60beaa67d1d2409de90dba878c (patch) | |
tree | 81c0a3a254400ac6374637dd566e6dbfeec6cf90 /compile.c | |
parent | 216807f7383be4479eb7c02dd0c4814b43322066 (diff) | |
download | ruby-7a37c70f2f5b0b60beaa67d1d2409de90dba878c.tar.gz ruby-7a37c70f2f5b0b60beaa67d1d2409de90dba878c.tar.xz ruby-7a37c70f2f5b0b60beaa67d1d2409de90dba878c.zip |
* compile.c, vm.c, insns.def: call FrozenCore.set_postexe method
instead to use "postexe" insn.
* id.c, id.h: add a prepared id for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4528,9 +4528,13 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) } case NODE_POSTEXE:{ VALUE block = NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK); - ADD_INSN1(ret, nd_line(node), postexe, block); - if (!poped) { - ADD_INSN(ret, nd_line(node), putnil); + + ADD_INSN1(ret, nd_line(node), putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE)); + ADD_INSN1(ret, nd_line(node), putiseq, block); + ADD_SEND (ret, nd_line(node), ID2SYM(id_core_set_postexe), INT2FIX(1)); + + if (poped) { + ADD_INSN(ret, nd_line(node), pop); } break; } |