From 7510eef7484aa620d7dd16f191147c9b877b59b7 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 12 Dec 2018 15:45:06 +0000 Subject: [PATCH] remove `compiled_` prefix. [Feature #15287] * vm_trace.c: remove `compiled_` prefix from the following methods: * `compiled_eval_script` * `compiled_instruction_sequence` [Feature #15287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 6 +++--- test/ruby/test_settracefunc.rb | 4 ++-- vm_trace.c | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/NEWS b/NEWS index 159bd07888..272ce1ca9a 100644 --- a/NEWS +++ b/NEWS @@ -327,15 +327,15 @@ sufficient information, see the ChangeLog file or Redmine [New features] - * "compiled_script" event is supported. [Feature #15287] + * "script_compiled" event is supported. [Feature #15287] [New methods] * TracePoint#parameters [Feature #14694] - * TracePoint#compiled_instruction_sequence [Feature #15287] + * TracePoint#instruction_sequence [Feature #15287] - * TracePoint#compiled_eval_script [Feature #15287] + * TracePoint#eval_script [Feature #15287] [Modified methods] diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 8fcd043124..2ada093f8d 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -2089,8 +2089,8 @@ class TestSetTraceFunc < Test::Unit::TestCase events = [] tp = TracePoint.new(:script_compiled){|tp| next unless target_thread? - events << [tp.compiled_instruction_sequence.path, - tp.compiled_eval_script] + events << [tp.instruction_sequence.path, + tp.eval_script] } eval_script = 'a = 1' diff --git a/vm_trace.c b/vm_trace.c index 67fef3c004..82c5249abc 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -963,7 +963,7 @@ rb_tracearg_raised_exception(rb_trace_arg_t *trace_arg) } VALUE -rb_tracearg_compiled_eval_script(rb_trace_arg_t *trace_arg) +rb_tracearg_eval_script(rb_trace_arg_t *trace_arg) { VALUE data = trace_arg->data; @@ -987,7 +987,7 @@ rb_tracearg_compiled_eval_script(rb_trace_arg_t *trace_arg) } VALUE -rb_tracearg_compiled_instruction_sequence(rb_trace_arg_t *trace_arg) +rb_tracearg_instruction_sequence(rb_trace_arg_t *trace_arg) { VALUE data = trace_arg->data; @@ -1168,9 +1168,9 @@ tracepoint_attr_raised_exception(VALUE tpval) * If loaded from a file, it will return nil. */ static VALUE -tracepoint_attr_compiled_eval_script(VALUE tpval) +tracepoint_attr_eval_script(VALUE tpval) { - return rb_tracearg_compiled_eval_script(get_trace_arg()); + return rb_tracearg_eval_script(get_trace_arg()); } /* @@ -1180,9 +1180,9 @@ tracepoint_attr_compiled_eval_script(VALUE tpval) * Note that this method is MRI specific. */ static VALUE -tracepoint_attr_compiled_instruction_sequence(VALUE tpval) +tracepoint_attr_instruction_sequence(VALUE tpval) { - return rb_tracearg_compiled_instruction_sequence(get_trace_arg()); + return rb_tracearg_instruction_sequence(get_trace_arg()); } static void @@ -1818,8 +1818,8 @@ Init_vm_trace(void) rb_define_method(rb_cTracePoint, "self", tracepoint_attr_self, 0); rb_define_method(rb_cTracePoint, "return_value", tracepoint_attr_return_value, 0); rb_define_method(rb_cTracePoint, "raised_exception", tracepoint_attr_raised_exception, 0); - rb_define_method(rb_cTracePoint, "compiled_eval_script", tracepoint_attr_compiled_eval_script, 0); - rb_define_method(rb_cTracePoint, "compiled_instruction_sequence", tracepoint_attr_compiled_instruction_sequence, 0); + rb_define_method(rb_cTracePoint, "eval_script", tracepoint_attr_eval_script, 0); + rb_define_method(rb_cTracePoint, "instruction_sequence", tracepoint_attr_instruction_sequence, 0); rb_define_singleton_method(rb_cTracePoint, "stat", tracepoint_stat_s, 0); }