From cbac40b3e53efce7740899c77eb979008dc96ff5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 24 Dec 2017 17:07:53 +0000 Subject: [PATCH] Remove "trace_instruction" compile option. * iseq.h (rb_compile_option_struct): trace instruction is removed so that remove the trace_instruction compile option. Don't show warning (just ignore) for Ruby 2.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 4 ---- iseq.h | 1 - vm_opts.h | 1 - 3 files changed, 6 deletions(-) diff --git a/iseq.c b/iseq.c index d1e567a17d..5349484ead 100644 --- a/iseq.c +++ b/iseq.c @@ -383,7 +383,6 @@ static rb_compile_option_t COMPILE_OPTION_DEFAULT = { OPT_OPERANDS_UNIFICATION, /* int operands_unification; */ OPT_INSTRUCTIONS_UNIFICATION, /* int instructions_unification; */ OPT_STACK_CACHING, /* int stack_caching; */ - OPT_TRACE_INSTRUCTION, /* int trace_instruction */ OPT_FROZEN_STRING_LITERAL, OPT_DEBUG_FROZEN_STRING_LITERAL, TRUE, /* coverage_enabled */ @@ -410,7 +409,6 @@ set_compile_option_from_hash(rb_compile_option_t *option, VALUE opt) SET_COMPILE_OPTION(option, opt, operands_unification); SET_COMPILE_OPTION(option, opt, instructions_unification); SET_COMPILE_OPTION(option, opt, stack_caching); - SET_COMPILE_OPTION(option, opt, trace_instruction); SET_COMPILE_OPTION(option, opt, frozen_string_literal); SET_COMPILE_OPTION(option, opt, debug_frozen_string_literal); SET_COMPILE_OPTION(option, opt, coverage_enabled); @@ -465,7 +463,6 @@ make_compile_option_value(rb_compile_option_t *option) SET_COMPILE_OPTION(option, opt, operands_unification); SET_COMPILE_OPTION(option, opt, instructions_unification); SET_COMPILE_OPTION(option, opt, stack_caching); - SET_COMPILE_OPTION(option, opt, trace_instruction); SET_COMPILE_OPTION(option, opt, frozen_string_literal); SET_COMPILE_OPTION(option, opt, debug_frozen_string_literal); SET_COMPILE_OPTION(option, opt, coverage_enabled); @@ -953,7 +950,6 @@ iseqw_s_compile_file(int argc, VALUE *argv, VALUE self) * * +:specialized_instruction+ * * +:stack_caching+ * * +:tailcall_optimization+ - * * +:trace_instruction+ * * Additionally, +:debug_level+ can be set to an integer. * diff --git a/iseq.h b/iseq.h index 17066cb4bd..825d52bd84 100644 --- a/iseq.h +++ b/iseq.h @@ -203,7 +203,6 @@ struct rb_compile_option_struct { unsigned int operands_unification: 1; unsigned int instructions_unification: 1; unsigned int stack_caching: 1; - unsigned int trace_instruction: 1; unsigned int frozen_string_literal: 1; unsigned int debug_frozen_string_literal: 1; unsigned int coverage_enabled: 1; diff --git a/vm_opts.h b/vm_opts.h index 3fedf1d6e2..0d87e65654 100644 --- a/vm_opts.h +++ b/vm_opts.h @@ -18,7 +18,6 @@ * Following definitions are default values. */ -#define OPT_TRACE_INSTRUCTION 1 #define OPT_TAILCALL_OPTIMIZATION 0 #define OPT_PEEPHOLE_OPTIMIZATION 1 #define OPT_SPECIALISED_INSTRUCTION 1