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

ruby-changes:53594

From: k0kubun <ko1@a...>
Date: Mon, 19 Nov 2018 23:00:55 +0900 (JST)
Subject: [ruby-changes:53594] k0kubun:r65810 (trunk): ruby.c: do not surface MJIT to user

k0kubun	2018-11-19 23:00:49 +0900 (Mon, 19 Nov 2018)

  New Revision: 65810

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

  Log:
    ruby.c: do not surface MJIT to user
    
    In some places, both JIT and MJIT are being used, but it could be
    confusing for new comers. We're not explaining MJIT on NEWS file or release
    notes as well. So we consider MJIT as an internal term of implementation
    like YARV.
    
    configure.ac: ditto

  Modified files:
    trunk/configure.ac
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 65809)
+++ ruby.c	(revision 65810)
@@ -252,8 +252,8 @@ usage(const char *name, int help) https://github.com/ruby/ruby/blob/trunk/ruby.c#L252
 	M("-w",		   "",			   "turn warnings on for your script"),
 	M("-W[level=2]",   "",			   "set warning level; 0=silence, 1=medium, 2=verbose"),
 	M("-x[directory]", "",			   "strip off text before #!ruby line and perhaps cd to directory"),
-        M("--jit",         "",                     "enable MJIT with default options (experimental)"),
-        M("--jit-[option]","",                     "enable MJIT with an option (experimental)"),
+        M("--jit",         "",                     "enable JIT with default options (experimental)"),
+        M("--jit-[option]","",                     "enable JIT with an option (experimental)"),
 	M("-h",		   "",			   "show this message, --help for more info"),
     };
     static const struct message help_msg[] = {
@@ -279,14 +279,14 @@ usage(const char *name, int help) https://github.com/ruby/ruby/blob/trunk/ruby.c#L279
 	M("did_you_mean", "",   "did_you_mean (default: "DEFAULT_RUBYGEMS_ENABLED")"),
 	M("rubyopt", "",        "RUBYOPT environment variable (default: enabled)"),
 	M("frozen-string-literal", "", "freeze all string literals (default: disabled)"),
-        M("jit", "",            "MJIT (default: disabled)"),
+        M("jit", "",            "JIT compiler (default: disabled)"),
     };
     static const struct message mjit_options[] = {
-        M("--jit-warnings",      "", "Enable printing MJIT warnings"),
-        M("--jit-debug",         "", "Enable MJIT debugging (very slow)"),
+        M("--jit-warnings",      "", "Enable printing JIT warnings"),
+        M("--jit-debug",         "", "Enable JIT debugging (very slow)"),
         M("--jit-wait",          "", "Wait until JIT compilation is finished everytime (for testing)"),
-        M("--jit-save-temps",    "", "Save MJIT temporary files in $TMP or /tmp (for testing)"),
-        M("--jit-verbose=num",   "", "Print MJIT logs of level num or less to stderr (default: 0)"),
+        M("--jit-save-temps",    "", "Save JIT temporary files in $TMP or /tmp (for testing)"),
+        M("--jit-verbose=num",   "", "Print JIT logs of level num or less to stderr (default: 0)"),
         M("--jit-max-cache=num", "", "Max number of methods to be JIT-ed in a cache (default: 1000)"),
         M("--jit-min-calls=num", "", "Number of calls to trigger JIT (for testing, default: 5)"),
     };
@@ -308,7 +308,7 @@ usage(const char *name, int help) https://github.com/ruby/ruby/blob/trunk/ruby.c#L308
     puts("Features:");
     for (i = 0; i < numberof(features); ++i)
 	SHOW(features[i]);
-    puts("MJIT options (experimental):");
+    puts("JIT options (experimental):");
     for (i = 0; i < numberof(mjit_options); ++i)
 	SHOW(mjit_options[i]);
 }
Index: configure.ac
===================================================================
--- configure.ac	(revision 65809)
+++ configure.ac	(revision 65810)
@@ -3341,10 +3341,10 @@ AC_SUBST(CAPITARGET) https://github.com/ruby/ruby/blob/trunk/configure.ac#L3341
 AS_CASE(["$RDOCTARGET:$CAPITARGET"],[nodoc:nodoc],[INSTALLDOC=nodoc],[INSTALLDOC=all])
 AC_SUBST(INSTALLDOC)
 
-AC_ARG_ENABLE(mjit-support,
-        AS_HELP_STRING([--disable-mjit-support], [disable MJIT features]),
+AC_ARG_ENABLE(jit-support,
+        AS_HELP_STRING([--disable-jit-support], [disable JIT features]),
         [MJIT_SUPPORT=$enableval
-         AS_IF([test x"$enable_mjit_support" = "xyes"],
+         AS_IF([test x"$enable_jit_support" = "xyes"],
                  [AC_DEFINE(USE_MJIT, 1)],
                  [AC_DEFINE(USE_MJIT, 0)])],
         [MJIT_SUPPORT=yes
@@ -4016,7 +4016,7 @@ config_summary "debugflags"          "$d https://github.com/ruby/ruby/blob/trunk/configure.ac#L4016
 config_summary "warnflags"           "$warnflags"
 config_summary "strip command"       "$STRIP"
 config_summary "install doc"         "$install_doc"
-config_summary "MJIT support"        "$MJIT_SUPPORT"
+config_summary "JIT support"         "$MJIT_SUPPORT"
 config_summary "man page type"       "$MANTYPE"
 config_summary "search path"         "$search_path"
 config_summary "static-linked-ext"   ${EXTSTATIC:+"yes"}

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

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