ruby-changes:49333
From: ko1 <ko1@a...>
Date: Mon, 25 Dec 2017 02:07:59 +0900 (JST)
Subject: [ruby-changes:49333] ko1:r61450 (trunk): Remove "trace_instruction" compile option.
ko1 2017-12-25 02:07:53 +0900 (Mon, 25 Dec 2017) New Revision: 61450 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61450 Log: 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. Modified files: trunk/iseq.c trunk/iseq.h trunk/vm_opts.h Index: vm_opts.h =================================================================== --- vm_opts.h (revision 61449) +++ vm_opts.h (revision 61450) @@ -18,7 +18,6 @@ https://github.com/ruby/ruby/blob/trunk/vm_opts.h#L18 * 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 Index: iseq.c =================================================================== --- iseq.c (revision 61449) +++ iseq.c (revision 61450) @@ -383,7 +383,6 @@ static rb_compile_option_t COMPILE_OPTIO https://github.com/ruby/ruby/blob/trunk/iseq.c#L383 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_ https://github.com/ruby/ruby/blob/trunk/iseq.c#L409 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_opt https://github.com/ruby/ruby/blob/trunk/iseq.c#L463 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 *ar https://github.com/ruby/ruby/blob/trunk/iseq.c#L950 * * +:specialized_instruction+ * * +:stack_caching+ * * +:tailcall_optimization+ - * * +:trace_instruction+ * * Additionally, +:debug_level+ can be set to an integer. * Index: iseq.h =================================================================== --- iseq.h (revision 61449) +++ iseq.h (revision 61450) @@ -203,7 +203,6 @@ struct rb_compile_option_struct { https://github.com/ruby/ruby/blob/trunk/iseq.h#L203 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/