aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-08 07:42:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-08 07:42:23 +0000
commit89a6a4ec8c7d83ecd063d18b13c77d12fd688722 (patch)
treec8d07a00a00bea4777a811ab7b4f1b110d06e26f /compile.c
parent6ce7986668a159de41534b70e777f2ed216f6e5c (diff)
downloadruby-89a6a4ec8c7d83ecd063d18b13c77d12fd688722.tar.gz
compile.c: debug prints in ibf_load_object
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index e70271cbbe..a3b6d652bd 100644
--- a/compile.c
+++ b/compile.c
@@ -9472,8 +9472,17 @@ ibf_load_object(const struct ibf_load *load, VALUE object_index)
ibf_offset_t offset = offsets[object_index];
const struct ibf_object_header *header = IBF_OBJHEADER(offset);
+#if IBF_ISEQ_DEBUG
+ fprintf(stderr, "ibf_load_object: list=%#x offsets=%p offset=%#x\n",
+ load->header->object_list_offset, offsets, offset);
+ fprintf(stderr, "ibf_load_object: type=%#x special=%d frozen=%d internal=%d\n",
+ header->type, header->special_const, header->frozen, header->internal);
+#endif
if (header->special_const) {
VALUE *vp = IBF_OBJBODY(VALUE, offset);
+#if IBF_ISEQ_DEBUG
+ fprintf(stderr, "ibf_load_object: vp=%p\n", vp);
+#endif
obj = *vp;
}
else {
@@ -9482,6 +9491,10 @@ ibf_load_object(const struct ibf_load *load, VALUE object_index)
rb_ary_store(load->obj_list, (long)object_index, obj);
}
+#if IBF_ISEQ_DEBUG
+ fprintf(stderr, "ibf_load_object: index=%#"PRIxVALUE" obj=%#"PRIxVALUE"\n",
+ object_index, obj);
+#endif
return obj;
}
}