summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
commit4bdb5ced9a06532d33e6aa0dd6be49e863b31d22 (patch)
treee45cc5127c0734b78ea979be8a572f9123dca8e1 /iseq.c
parentace2b68ac4215b46f5de94bad68f3fef91df4245 (diff)
* gc.h: add RUBY_ prefix to debug macros.
* cont.c, proc.c, yarvcore.c, * gc.c: define ruby_gc_debug_indent variable to debug mark/free. * vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*. move some functions, definitions, declarations to suitable files. * eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/iseq.c b/iseq.c
index b1f7ba2..2c4d40c 100644
--- a/iseq.c
+++ b/iseq.c
@@ -41,7 +41,7 @@ static void
iseq_free(void *ptr)
{
rb_iseq_t *iseq;
- FREE_REPORT_ENTER("iseq");
+ RUBY_FREE_ENTER("iseq");
if (ptr) {
iseq = ptr;
@@ -50,44 +50,44 @@ iseq_free(void *ptr)
* RSTRING_PTR(iseq->filename));
*/
if (iseq->iseq != iseq->iseq_encoded) {
- FREE_UNLESS_NULL(iseq->iseq_encoded);
+ RUBY_FREE_UNLESS_NULL(iseq->iseq_encoded);
}
- FREE_UNLESS_NULL(iseq->iseq);
- FREE_UNLESS_NULL(iseq->insn_info_tbl);
- FREE_UNLESS_NULL(iseq->local_table);
- FREE_UNLESS_NULL(iseq->catch_table);
- FREE_UNLESS_NULL(iseq->arg_opt_tbl);
+ RUBY_FREE_UNLESS_NULL(iseq->iseq);
+ RUBY_FREE_UNLESS_NULL(iseq->insn_info_tbl);
+ RUBY_FREE_UNLESS_NULL(iseq->local_table);
+ RUBY_FREE_UNLESS_NULL(iseq->catch_table);
+ RUBY_FREE_UNLESS_NULL(iseq->arg_opt_tbl);
compile_data_free(iseq->compile_data);
ruby_xfree(ptr);
}
- FREE_REPORT_LEAVE("iseq");
+ RUBY_FREE_LEAVE("iseq");
}
static void
iseq_mark(void *ptr)
{
rb_iseq_t *iseq;
- MARK_REPORT_ENTER("iseq");
+ RUBY_MARK_ENTER("iseq");
if (ptr) {
iseq = ptr;
- GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name), RSTRING_PTR(iseq->filename));
- MARK_UNLESS_NULL(iseq->iseq_mark_ary);
- MARK_UNLESS_NULL(iseq->name);
- MARK_UNLESS_NULL(iseq->filename);
- MARK_UNLESS_NULL((VALUE)iseq->cref_stack);
- MARK_UNLESS_NULL(iseq->klass);
- MARK_UNLESS_NULL((VALUE)iseq->node);
- MARK_UNLESS_NULL(iseq->cached_special_block);
+ RUBY_GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name), RSTRING_PTR(iseq->filename));
+ RUBY_MARK_UNLESS_NULL(iseq->iseq_mark_ary);
+ RUBY_MARK_UNLESS_NULL(iseq->name);
+ 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);
if (iseq->compile_data != 0) {
- MARK_UNLESS_NULL(iseq->compile_data->mark_ary);
- MARK_UNLESS_NULL(iseq->compile_data->err_info);
- MARK_UNLESS_NULL(iseq->compile_data->catch_table_ary);
+ RUBY_MARK_UNLESS_NULL(iseq->compile_data->mark_ary);
+ RUBY_MARK_UNLESS_NULL(iseq->compile_data->err_info);
+ RUBY_MARK_UNLESS_NULL(iseq->compile_data->catch_table_ary);
}
}
- MARK_REPORT_LEAVE("iseq");
+ RUBY_MARK_LEAVE("iseq");
}
static VALUE