Skip to content
Permalink
Browse files

Remove --dump flag

That flag only works when having moarvm files as input and so makes little
sense in the perl6 executable.
  • Loading branch information...
patzim committed Apr 24, 2019
1 parent 8b9297d commit 2d3a7fbf980f3b571204805456772f6165d7626b
Showing with 1 addition and 15 deletions.
  1. +0 −1 docs/running.pod
  2. +0 −6 src/Perl6/Compiler.nqp
  3. +1 −8 src/vm/moar/runner/main.c
@@ -30,7 +30,6 @@ compiled code.
--profile write profile information as HTML file (MoarVM)
--profile-filename provide a different filename (also allows .json)
--doc=[module] Use Pod::To::[module] to render inline documentation.
--dump dump the bytecode to stdout instead of executing (MoarVM)
--full-cleanup try to free all memory and exit cleanly (MoarVM)
--debug-port=port listen for incoming debugger connections (MoarVM)
--debug-suspend pause execution at the entry point (MoarVM)
@@ -108,7 +108,6 @@ class Perl6::Compiler is HLL::Compiler {
--profile-stage=stage
write profile information for the given compilation
stage to an HTML file
--dump dump the bytecode to stdout instead of executing
--full-cleanup try to free all memory and exit cleanly
--debug-port=port listen for incoming debugger connections
--debug-suspend pause execution at the entry point
@@ -138,7 +137,6 @@ and, by default, also executes the compiled code.
--stagestats display time spent in the compilation stages
--ll-exception display a low level backtrace on errors
--doc=module use Pod::To::[module] to render inline documentation
--repl-mode=interactive|non-interactive
when running without "-e" or filename arguments,
a REPL is started. By default, if STDIN is a TTY,
@@ -149,7 +147,6 @@ and, by default, also executes the compiled code.
loaded). This option allows to bypass TTY detection and
force one of the REPL modes.
$moar-options
Note that only boolean single-letter options may be bundled.
The following environment variables are respected:
@@ -158,9 +155,6 @@ The following environment variables are respected:
PERL6_HOME Override the path of the Perl6 runtime files
NQP_HOME Override the path of the NQP runtime files
); # end of usage statement

nqp::exit(0);
@@ -34,15 +34,13 @@ enum {
UNKNOWN_FLAG = -1,

FLAG_SUSPEND,
FLAG_DUMP,
FLAG_TRACING,

OPT_DEBUGPORT
};

static const char *const FLAGS[] = {
"--debug-suspend",
"--dump",
"--full-cleanup",
"--tracing",
};
@@ -156,7 +154,6 @@ int wmain(int argc, wchar_t *wargv[])
char **argv = MVM_UnicodeToUTF8_argv(argc, wargv);
#endif

int dump = 0;
int argi = 1;
int flag;
int new_argc = 0;
@@ -171,9 +168,6 @@ int wmain(int argc, wchar_t *wargv[])

for (; (flag = parse_flag(argv[argi])) != NOT_A_FLAG; ++argi) {
switch (flag) {
case FLAG_DUMP:
dump = 1;
continue;

#if MVM_TRACING
case FLAG_TRACING:
@@ -339,8 +333,7 @@ int wmain(int argc, wchar_t *wargv[])
}
}

if (dump) MVM_vm_dump_file(instance, perl6_file);
else MVM_vm_run_file(instance, perl6_file);
MVM_vm_run_file(instance, perl6_file);

#ifdef HAVE_TELEMEH
if (getenv("MVM_TELEMETRY_LOG") && telemeh_inited) {

0 comments on commit 2d3a7fb

Please sign in to comment.
You can’t perform that action at this time.