summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-08 17:57:44 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-06-18 03:35:38 +0900
commit0a36cab1b53646062026c3181117fad73802baf4 (patch)
treee51f35d4865d7dd535189738604e748351935815 /iseq.h
parentdfba87cd622f9699f54d1d0b8c057deb428874b6 (diff)
downloadruby-0a36cab1b53646062026c3181117fad73802baf4.tar.gz
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
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/iseq.h b/iseq.h
index d3130a42af..87e498227b 100644
--- a/iseq.h
+++ b/iseq.h
@@ -17,7 +17,9 @@ RUBY_EXTERN const int ruby_api_version[];
#define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
#define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
-//#define EXPERIMENTAL_ISEQ_NODE_ID
+#ifndef USE_ISEQ_NODE_ID
+#define USE_ISEQ_NODE_ID 1
+#endif
#ifndef rb_iseq_t
typedef struct rb_iseq_struct rb_iseq_t;
@@ -178,7 +180,7 @@ void rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *arena);
VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
-#ifdef EXPERIMENTAL_ISEQ_NODE_ID
+#ifdef USE_ISEQ_NODE_ID
int rb_iseq_node_id(const rb_iseq_t *iseq, size_t pos);
#endif
void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events);
@@ -218,7 +220,7 @@ struct rb_compile_option_struct {
struct iseq_insn_info_entry {
int line_no;
-#ifdef EXPERIMENTAL_ISEQ_NODE_ID
+#ifdef USE_ISEQ_NODE_ID
int node_id;
#endif
rb_event_flag_t events;