[ruby-cvs:60074] ko1:r52921 (trunk): * iseq.c (iseq_translate): at the end of constructing an iseq,

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Dec 8 02:23:19 JST 2015


ko1	2015-12-08 02:23:18 +0900 (Tue, 08 Dec 2015)

  New Revision: 52921

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

  Log:
    * iseq.c (iseq_translate): at the end of constructing an iseq,
      call RubyVM::InstructionSequence.translate(iseq) if this method
      is defined. If the return value is also an object of
      RubyVM::InstructionSequence, then use it instead of created one.
    
      For example, this method is useful to test iseq dumper/loader
      such as RubyVM::InstructionSequence#to_a and rb_iseq_load().
    
      Because this method is for such internal experimental usage,
      the interface is not matured. For example, this interface has
      no extensibility. Two or more translaters can not run
      simultaneously.
    
      So that we don't guarantee future compatibility of this method.
      Basically, do not use this method.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c


More information about the ruby-cvs mailing list