From adfbd09fbf19d1e28dabd89866fae7f5f5d6de83 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 22 May 2008 11:16:40 +0000 Subject: * iseq.c (iseq_load, iseq_data_to_ary): support ISEQ_TYPE_DEFINED_GUARD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index f6f443c21..562a8ca52 100644 --- a/iseq.c +++ b/iseq.c @@ -388,6 +388,7 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt) st_insert(type_map, ID2SYM(rb_intern("rescue")), ISEQ_TYPE_RESCUE); st_insert(type_map, ID2SYM(rb_intern("ensure")), ISEQ_TYPE_ENSURE); st_insert(type_map, ID2SYM(rb_intern("eval")), ISEQ_TYPE_EVAL); + st_insert(type_map, ID2SYM(rb_intern("defined_guard")), ISEQ_TYPE_DEFINED_GUARD); } if (st_lookup(type_map, type, &iseq_type) == 0) { @@ -1000,6 +1001,7 @@ iseq_data_to_ary(rb_iseq_t *iseq) DECL_SYMBOL(rescue); DECL_SYMBOL(ensure); DECL_SYMBOL(eval); + DECL_SYMBOL(defined_guard); if (sym_top == 0) { int i; @@ -1013,6 +1015,7 @@ iseq_data_to_ary(rb_iseq_t *iseq) INIT_SYMBOL(rescue); INIT_SYMBOL(ensure); INIT_SYMBOL(eval); + INIT_SYMBOL(defined_guard); } /* type */ @@ -1024,6 +1027,7 @@ iseq_data_to_ary(rb_iseq_t *iseq) case ISEQ_TYPE_RESCUE: type = sym_rescue; break; case ISEQ_TYPE_ENSURE: type = sym_ensure; break; case ISEQ_TYPE_EVAL: type = sym_eval; break; + case ISEQ_TYPE_DEFINED_GUARD: type = sym_defined_guard; break; default: rb_bug("unsupported iseq type"); }; -- cgit