From 0a36cab1b53646062026c3181117fad73802baf4 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 8 Jun 2021 17:57:44 +0900 Subject: 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 --- iseq.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'iseq.h') 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; -- cgit v1.2.1