[前][次][番号順一覧][スレッド一覧]

ruby-changes:51611

From: nobu <ko1@a...>
Date: Mon, 2 Jul 2018 16:42:29 +0900 (JST)
Subject: [ruby-changes:51611] nobu:r63822 (trunk): set up mjit.on at initialization

nobu	2018-07-02 16:42:24 +0900 (Mon, 02 Jul 2018)

  New Revision: 63822

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

  Log:
    set up mjit.on at initialization
    
    * ruby.c (cmdline_options_init): set up mjit.on flag by
      MJIT_FORCE_ENABLE in the initialization function.

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 63821)
+++ ruby.c	(revision 63822)
@@ -179,6 +179,9 @@ cmdline_options_init(ruby_cmdline_option https://github.com/ruby/ruby/blob/trunk/ruby.c#L179
     opt->ext.enc.index = -1;
     opt->intern.enc.index = -1;
     opt->features = DEFAULT_FEATURES;
+#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
+    opt->mjit.on = MJIT_FORCE_ENABLE;
+#endif
     return opt;
 }
 
@@ -1534,10 +1537,6 @@ process_options(int argc, char **argv, r https://github.com/ruby/ruby/blob/trunk/ruby.c#L1537
     const struct rb_block *base_block;
     unsigned int dump = opt->dump & dump_exit_bits;
 
-#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
-    opt->mjit.on = 1;
-#endif
-
     if (opt->dump & (DUMP_BIT(usage)|DUMP_BIT(help))) {
 	const char *const progname =
 	    (argc > 0 && argv && argv[0] ? argv[0] :

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]