diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-24 17:07:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-24 17:07:53 +0000 |
commit | cbac40b3e53efce7740899c77eb979008dc96ff5 (patch) | |
tree | b6cd5207221410fae6b48c00721108425fe9627c | |
parent | 973e39a3097b58db489c3184b24f07e801f7c1a3 (diff) | |
download | ruby-cbac40b3e53efce7740899c77eb979008dc96ff5.tar.gz |
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
-rw-r--r-- | iseq.c | 4 | ||||
-rw-r--r-- | iseq.h | 1 | ||||
-rw-r--r-- | vm_opts.h | 1 |
3 files changed, 0 insertions, 6 deletions
@@ -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. * @@ -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; @@ -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 |