Commit d1e16e8c authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by GitHub

Merge pull request #1359 from kmod/metaserver_merge

Some minor improvements from the metaserver branch
parents 6ca5522e ad616453
...@@ -470,7 +470,8 @@ quick_check: ...@@ -470,7 +470,8 @@ quick_check:
Makefile.local: Makefile.local:
echo "Creating default Makefile.local" echo "Creating default Makefile.local"
which ninja-build >/dev/null && echo "NINJA := ninja-build" >> Makefile.local (which ninja-build >/dev/null && echo "NINJA := ninja-build" >> Makefile.local); true
touch Makefile.local
llvm_up: llvm_up:
$(CPYTHON) $(TOOLS_DIR)/git_svn_gotorev.py $(LLVM_SRC) $(LLVM_REVISION) ./llvm_patches $(CPYTHON) $(TOOLS_DIR)/git_svn_gotorev.py $(LLVM_SRC) $(LLVM_REVISION) ./llvm_patches
......
...@@ -93,6 +93,8 @@ def setprofile(func): ...@@ -93,6 +93,8 @@ def setprofile(func):
run() method is called. run() method is called.
""" """
# This would otherwise fail at thread-creation time:
assert 0, "threading.setprofile not supported in Pyston yet"
global _profile_hook global _profile_hook
_profile_hook = func _profile_hook = func
...@@ -103,6 +105,8 @@ def settrace(func): ...@@ -103,6 +105,8 @@ def settrace(func):
method is called. method is called.
""" """
# This would otherwise fail at thread-creation time:
assert 0, "threading.settrace not supported in Pyston yet"
global _trace_hook global _trace_hook
_trace_hook = func _trace_hook = func
......
...@@ -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;
......
...@@ -272,7 +272,8 @@ extern "C" BORROWED(PyObject*) PyList_GetItem(PyObject* op, Py_ssize_t i) noexce ...@@ -272,7 +272,8 @@ extern "C" BORROWED(PyObject*) PyList_GetItem(PyObject* op, Py_ssize_t i) noexce
try { try {
return listGetitemUnboxed(static_cast<BoxedList*>(op), i); return listGetitemUnboxed(static_cast<BoxedList*>(op), i);
} catch (ExcInfo e) { } catch (ExcInfo e) {
abort(); setCAPIException(e);
return NULL;
} }
} }
......
...@@ -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