ruby-changes:50909
From: nobu <ko1@a...>
Date: Sun, 8 Apr 2018 16:42:28 +0900 (JST)
Subject: [ruby-changes:50909] nobu:r63116 (trunk): compile.c: debug prints in ibf_load_object
nobu 2018-04-08 16:42:23 +0900 (Sun, 08 Apr 2018) New Revision: 63116 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63116 Log: compile.c: debug prints in ibf_load_object Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 63115) +++ compile.c (revision 63116) @@ -9472,8 +9472,17 @@ ibf_load_object(const struct ibf_load *l https://github.com/ruby/ruby/blob/trunk/compile.c#L9472 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 *l https://github.com/ruby/ruby/blob/trunk/compile.c#L9491 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; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/