summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 02:17:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 02:17:16 +0000
commitbfc19ade2e824dd549868d601b2c688f6ad928c5 (patch)
treefa5e81b264a4e7b15042f4daf3eb8fd7363630b8
parentb40dbc304efe8297d7dbe10d6781c7608a651934 (diff)
* iseq.c, vm_core.h: comment out unused fields.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--iseq.c13
-rw-r--r--vm_core.h10
3 files changed, 18 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 086a63e706..9060947822 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 25 11:14:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c, vm_core.h: comment out unused fields.
+
Tue Dec 25 11:02:10 2007 Koichi Sasada <ko1@atdot.net>
* vm.c: check frame is FINAL when creating env.
diff --git a/iseq.c b/iseq.c
index 03d20599b9..9cf3ba5bad 100644
--- a/iseq.c
+++ b/iseq.c
@@ -82,8 +82,8 @@ iseq_mark(void *ptr)
RUBY_MARK_UNLESS_NULL(iseq->filename);
RUBY_MARK_UNLESS_NULL((VALUE)iseq->cref_stack);
RUBY_MARK_UNLESS_NULL(iseq->klass);
- RUBY_MARK_UNLESS_NULL((VALUE)iseq->node);
- RUBY_MARK_UNLESS_NULL(iseq->cached_special_block);
+/* RUBY_MARK_UNLESS_NULL((VALUE)iseq->node); */
+/* RUBY_MARK_UNLESS_NULL(iseq->cached_special_block); */
if (iseq->compile_data != 0) {
RUBY_MARK_UNLESS_NULL(iseq->compile_data->mark_ary);
@@ -164,9 +164,12 @@ prepare_iseq_build(rb_iseq_t *iseq,
iseq->arg_rest = -1;
iseq->arg_block = -1;
iseq->klass = 0;
- iseq->special_block_builder = GC_GUARDED_PTR_REF(block_opt);
- iseq->cached_special_block_builder = 0;
- iseq->cached_special_block = 0;
+
+ /*
+ * iseq->special_block_builder = GC_GUARDED_PTR_REF(block_opt);
+ * iseq->cached_special_block_builder = 0;
+ * iseq->cached_special_block = 0;
+ */
iseq->compile_data = ALLOC(struct iseq_compile_data);
MEMZERO(iseq->compile_data, struct iseq_compile_data, 1);
diff --git a/vm_core.h b/vm_core.h
index 07fda28b88..98c57300c1 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -257,10 +257,12 @@ struct rb_iseq_struct {
VALUE self;
/* block inlining */
- NODE *node;
- void *special_block_builder;
- void *cached_special_block_builder;
- VALUE cached_special_block;
+ /*
+ * NODE *node;
+ * void *special_block_builder;
+ * void *cached_special_block_builder;
+ * VALUE cached_special_block;
+ */
/* klass/module nest information stack (cref) */
NODE *cref_stack;