diff options
author | Yusuke Endoh <[email protected]> | 2021-06-08 17:57:44 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-06-18 03:35:38 +0900 |
commit | 0a36cab1b53646062026c3181117fad73802baf4 (patch) | |
tree | e51f35d4865d7dd535189738604e748351935815 /compile.c | |
parent | dfba87cd622f9699f54d1d0b8c057deb428874b6 (diff) |
Enable USE_ISEQ_NODE_ID by default
... which is formally called EXPERIMENTAL_ISEQ_NODE_ID.
See also ff69ef27b06eed1ba750e7d9cab8322f351ed245.
https://bugs.ruby-lang.org/issues/17930
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4558
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2216,12 +2216,12 @@ add_insn_info(struct iseq_insn_info_entry *insns_info, unsigned int *positions, { if (insns_info_index == 0 || insns_info[insns_info_index-1].line_no != iobj->insn_info.line_no || -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID insns_info[insns_info_index-1].node_id != iobj->insn_info.node_id || #endif insns_info[insns_info_index-1].events != iobj->insn_info.events) { insns_info[insns_info_index].line_no = iobj->insn_info.line_no; -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID insns_info[insns_info_index].node_id = iobj->insn_info.node_id; #endif insns_info[insns_info_index].events = iobj->insn_info.events; @@ -10059,7 +10059,7 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc, VALUE locals, VALUE params, } VALUE node_ids = Qfalse; -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID node_ids = rb_hash_aref(misc, ID2SYM(rb_intern("node_ids"))); if (!RB_TYPE_P(node_ids, T_ARRAY)) { rb_raise(rb_eTypeError, "node_ids is not an array"); @@ -10940,7 +10940,7 @@ ibf_dump_insns_info_body(struct ibf_dump *dump, const rb_iseq_t *iseq) unsigned int i; for (i = 0; i < iseq->body->insns_info.size; i++) { ibf_dump_write_small_value(dump, entries[i].line_no); -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID ibf_dump_write_small_value(dump, entries[i].node_id); #endif ibf_dump_write_small_value(dump, entries[i].events); @@ -10958,7 +10958,7 @@ ibf_load_insns_info_body(const struct ibf_load *load, ibf_offset_t body_offset, unsigned int i; for (i = 0; i < size; i++) { entries[i].line_no = (int)ibf_load_small_value(load, &reading_pos); -#ifdef EXPERIMENTAL_ISEQ_NODE_ID +#ifdef USE_ISEQ_NODE_ID entries[i].node_id = (int)ibf_load_small_value(load, &reading_pos); #endif entries[i].events = (rb_event_flag_t)ibf_load_small_value(load, &reading_pos); |