[ruby-cvs:68301] ko1:r61120 (trunk): vm_exec.h: introduce macros for abstarction.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Dec 12 01:07:21 JST 2017


ko1	2017-12-12 01:07:21 +0900 (Tue, 12 Dec 2017)

  New Revision: 61120

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

  Log:
    vm_exec.h: introduce macros for abstarction.
    
    * vm_exec.h: declare two macros
      * START_OF_ORIGINAL_INSN()
      * DISPATCH_ORIGINAL_INSN()
      instead of inserting label and goto lines.
      For OPT_CALL_THREADED_CODE, first macro is empty and second macro
      is simply call the original insn function.
    
    * tool/instruction.rb: use above macros.

  Modified files:
    trunk/tool/instruction.rb
    trunk/vm_exec.h


More information about the ruby-cvs mailing list