Commit ad616453 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Remove conflicting command-line flags

We mostly did a good job of picking flags that CPython doesn't use (or at least, that
its manpage doesn't advertise), but there are a couple that need to be changed.

One is for TRAP which is a feature I don't even remember anymore, so that's removed.

The other is for stats -- '-s' is now changed to '-T'.  This will be annoying to change
on the perf-tracking side.
parent 1ac2322a
...@@ -121,10 +121,6 @@ private: ...@@ -121,10 +121,6 @@ private:
int pops_required; int pops_required;
inline void _emitByte(uint8_t b) { inline void _emitByte(uint8_t b) {
if (TRAP) {
printf(" %02x", b);
fflush(stdout);
}
assert(addr < end_addr); assert(addr < end_addr);
*addr++ = b; *addr++ = b;
} }
......
...@@ -36,7 +36,6 @@ bool CONTINUE_AFTER_FATAL = false; ...@@ -36,7 +36,6 @@ bool CONTINUE_AFTER_FATAL = false;
bool SHOW_DISASM = false; bool SHOW_DISASM = false;
bool PROFILE = false; bool PROFILE = false;
bool DUMPJIT = false; bool DUMPJIT = false;
bool TRAP = false;
bool USE_STRIPPED_STDLIB = true; // always true bool USE_STRIPPED_STDLIB = true; // always true
bool USE_REGALLOC_BASIC = false; bool USE_REGALLOC_BASIC = false;
bool PAUSE_AT_ABORT = false; bool PAUSE_AT_ABORT = false;
......
...@@ -35,8 +35,8 @@ extern int OSR_THRESHOLD_T2, REOPT_THRESHOLD_T2; ...@@ -35,8 +35,8 @@ extern int OSR_THRESHOLD_T2, REOPT_THRESHOLD_T2;
extern int SPECULATION_THRESHOLD; extern int SPECULATION_THRESHOLD;
extern int MAX_OBJECT_CACHE_ENTRIES; extern int MAX_OBJECT_CACHE_ENTRIES;
extern bool SHOW_DISASM, FORCE_INTERPRETER, FORCE_OPTIMIZE, PROFILE, DUMPJIT, TRAP, USE_STRIPPED_STDLIB, extern bool SHOW_DISASM, FORCE_INTERPRETER, FORCE_OPTIMIZE, PROFILE, DUMPJIT, USE_STRIPPED_STDLIB, CONTINUE_AFTER_FATAL,
CONTINUE_AFTER_FATAL, ENABLE_INTERPRETER, ENABLE_BASELINEJIT, USE_REGALLOC_BASIC, PAUSE_AT_ABORT, ENABLE_TRACEBACKS, ENABLE_INTERPRETER, ENABLE_BASELINEJIT, USE_REGALLOC_BASIC, PAUSE_AT_ABORT, ENABLE_TRACEBACKS,
FORCE_LLVM_CAPI_CALLS, FORCE_LLVM_CAPI_THROWS; FORCE_LLVM_CAPI_CALLS, FORCE_LLVM_CAPI_THROWS;
extern bool LOG_IC_ASSEMBLY, LOG_BJIT_ASSEMBLY; extern bool LOG_IC_ASSEMBLY, LOG_BJIT_ASSEMBLY;
......
...@@ -184,8 +184,6 @@ static void enableGdbSegfaultWatcher() { ...@@ -184,8 +184,6 @@ static void enableGdbSegfaultWatcher() {
int handleArg(char code) { int handleArg(char code) {
if (code == 'O') if (code == 'O')
FORCE_OPTIMIZE = true; FORCE_OPTIMIZE = true;
else if (code == 't')
TRAP = true;
else if (code == 'q') else if (code == 'q')
GLOBAL_VERBOSITY = 0; GLOBAL_VERBOSITY = 0;
else if (code == 'v') { else if (code == 'v') {
...@@ -207,7 +205,7 @@ int handleArg(char code) { ...@@ -207,7 +205,7 @@ int handleArg(char code) {
PROFILE = true; PROFILE = true;
} else if (code == 'j') { } else if (code == 'j') {
DUMPJIT = true; DUMPJIT = true;
} else if (code == 's') { } else if (code == 'T') {
Stats::setEnabled(true); Stats::setEnabled(true);
} else if (code == 'S') { } else if (code == 'S') {
Py_NoSiteFlag = 1; Py_NoSiteFlag = 1;
...@@ -329,7 +327,7 @@ static int main(int argc, char** argv) noexcept { ...@@ -329,7 +327,7 @@ static int main(int argc, char** argv) noexcept {
// Suppress getopt errors so we can throw them ourselves // Suppress getopt errors so we can throw them ourselves
opterr = 0; opterr = 0;
while ((code = getopt(argc, argv, "+:OqdIibpjtrsRSUvnxXEac:FuPTGm:")) != -1) { while ((code = getopt(argc, argv, "+:OqdIibpjtrTRSUvnxXEac:FuPTGm:")) != -1) {
if (code == 'c') { if (code == 'c') {
assert(optarg); assert(optarg);
command = optarg; command = optarg;
......
...@@ -231,7 +231,7 @@ def get_test_options(fn, check_stats, run_memcheck): ...@@ -231,7 +231,7 @@ def get_test_options(fn, check_stats, run_memcheck):
opts.expected = "success" opts.expected = "success"
if opts.collect_stats: if opts.collect_stats:
opts.jit_args = ['-s'] + opts.jit_args opts.jit_args = ['-T'] + opts.jit_args
return opts return opts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment