[ruby-cvs:73349] ko1:r66249 (trunk): `script_compiled` TracePoint event [Feature #15287]

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Dec 6 22:42:32 JST 2018


ko1	2018-12-06 22:42:32 +0900 (Thu, 06 Dec 2018)

  New Revision: 66249

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66249

  Log:
    `script_compiled` TracePoint event [Feature #15287]
    
    * vm_trace.c: add `script_compiled` event. This event invoked
      after script compiling and before evaluating compiled script.
      Also the following methods are added:
    
      `TracePoint#compiled_instruction_sequence` method to get compiled
      `RubyVM::InstructionSequence` instance.
    
      `TracePoint#compiled_eval_script` method to get compiled script (String)
      by *eval methods (return nil if compiling by file).
    
    * vm_trace.c (tracepoint_attr_raised_exception):

  Modified files:
    trunk/include/ruby/ruby.h
    trunk/iseq.h
    trunk/load.c
    trunk/vm_eval.c
    trunk/vm_trace.c


More information about the ruby-cvs mailing list