diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-04 09:30:26 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-04 10:25:46 -0700 |
| commit | 01c462ce6aef82fe6dcdf54a4a3b33f1bc2d96b2 (patch) | |
| tree | 69d524485cf9bd586d4004ed159f84f2ef61485e /ruby.c | |
| parent | 49d27435d01cb5da6c7e344308577089e1a40598 (diff) | |
YJIT: Move help descriptions to options.rs
Diffstat (limited to 'ruby.c')
| -rw-r--r-- | ruby.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -391,18 +391,6 @@ usage(const char *name, int help, int highlight, int columns) M("experimental", "", "experimental features"), M("performance", "", "performance issues"), }; -#if USE_YJIT - static const struct ruby_opt_message yjit_options[] = { - M("--yjit-stats", "", "Enable collecting YJIT statistics"), - M("--yjit-trace-exits", "", "Record Ruby source location when exiting from generated code"), - M("--yjit-trace-exits-sample-rate", "", "Trace exit locations only every Nth occurrence"), - M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 128)"), - M("--yjit-call-threshold=num", "", "Number of calls to trigger JIT (default: 30)"), - M("--yjit-cold-threshold=num", "", "Global call after which ISEQs not compiled (default: 200K)"), - M("--yjit-max-versions=num", "", "Maximum number of versions per basic block (default: 4)"), - M("--yjit-greedy-versioning", "", "Greedy versioning mode (default: disabled)"), - }; -#endif #if USE_RJIT extern const struct ruby_opt_message rb_rjit_option_messages[]; #endif @@ -434,8 +422,7 @@ usage(const char *name, int help, int highlight, int columns) SHOW(warn_categories[i]); #if USE_YJIT printf("%s""YJIT options:%s\n", sb, se); - for (i = 0; i < numberof(yjit_options); ++i) - SHOW(yjit_options[i]); + rb_yjit_print_options(help, highlight, w, columns); #endif #if USE_RJIT printf("%s""RJIT options (experimental):%s\n", sb, se); |
