Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: bjit: register functions with GDB #796

Open
wants to merge 2,842 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2842 commits
Select commit Hold shift + click to select a range
069a701
add cpython regex tests
kmod Jul 16, 2015
1505cc6
int() continues to be tricky
kmod Jul 16, 2015
7c4c909
fix: need to check tp_getattro as well
kmod Jul 16, 2015
d95b70f
Optimization to cpythons regex library
kmod Jul 15, 2015
b44f8a5
Make listAppendInternal inlineable
kmod Jul 16, 2015
ba389a2
Reduce unnecessary string memsets
kmod Jul 16, 2015
3658143
Remove ObjLookupCache.objptr
kmod Jul 16, 2015
5bd967f
Optimize PySequence_GetSlice
kmod Jul 15, 2015
5385cf7
cmake dependency tracking workaround
kmod Jul 17, 2015
f3e03b3
Convert "a in (b, c)" to "a == b or a == c"
kmod Jul 16, 2015
f57db82
tuple.contains tests identity not just equality
kmod Jul 17, 2015
6e2c06a
Merge pull request #711 from kmod/fix_707
kmod Jul 17, 2015
baad890
Merge pull request #712 from kmod/perf2
kmod Jul 17, 2015
ef2d7ba
Merge pull request #713 from kmod/perf3
kmod Jul 17, 2015
65712e0
Merge pull request #714 from kmod/perf4
kmod Jul 17, 2015
fb2515a
Use weakref's original tp_dealloc.
rudi-c Jul 17, 2015
e648044
Merge pull request #666 from rudi-c/gcfinalizers3
toshok Jul 17, 2015
79b09dc
Add a django_parsing microbenchmark
kmod Jul 17, 2015
d2ffecb
stat unicode allocations
kmod Jul 17, 2015
caa5000
Experimental: speed up calling of capi code
kmod Jul 17, 2015
81b321d
Remove list locks
kmod Jul 17, 2015
f9326e1
Our list format is the same as CPython's
kmod Jul 17, 2015
db4bc77
Add internStringImmortal helper function
kmod Jul 7, 2015
c5b1d41
Change attributes from strings to BoxedStrings
kmod Jul 7, 2015
4385b6b
Merge pull request #716 from kmod/perf2
kmod Jul 19, 2015
aba975d
Merge pull request #717 from kmod/attr_perf
kmod Jul 19, 2015
61830a3
Optimize hidden class scanning
kmod Jul 17, 2015
d78db72
object and type didn't have singleton hidden classes
kmod Jul 18, 2015
ef71d45
Some ContiguousMap additions/fixes
kmod Jul 18, 2015
41bd148
Make the makefile use absolute paths for testing
kmod Jul 18, 2015
ee4fbd4
Optimize hcls ctor; make a few more strings immortal
kmod Jul 19, 2015
071ca0d
Merge pull request #718 from kmod/attr_interning
kmod Jul 20, 2015
9abf0b5
Merge pull request #708 from undingen/rewriter_release_scratch
tjhance Jul 20, 2015
a164e4c
Add some more pyc debugging
kmod Jul 1, 2015
3576797
Turn on gdb-watcher globally for travis-ci builds
kmod Jul 20, 2015
7d9da5e
Merge pull request #663 from kmod/parsing_investigation
kmod Jul 20, 2015
0085213
Cache floats based on their bits, not their value
kmod Jul 20, 2015
e5e19fb
Fix a small test output difference on Ubuntu 15.04
undingen Jul 20, 2015
a1d8c31
A few small getattr slowpath microoptimizations
kmod Jul 20, 2015
c2b5c58
Merge pull request #726 from undingen/fix_test
kmod Jul 20, 2015
31b1c23
Fix some issues found during a search for another bug
undingen Jul 20, 2015
fa137eb
add django_variable ubench; seems mostly about exceptions
kmod Jul 20, 2015
452204c
Reduce malloc() calls in rewriter
kmod Jul 20, 2015
c78fdcb
Can simplify InternedStringPool
kmod Jul 21, 2015
1b7a412
Merge pull request #728 from undingen/small_issues
kmod Jul 21, 2015
4ba2dfe
Merge pull request #725 from kmod/neg_zero
kmod Jul 21, 2015
5a0f66d
Merge pull request #729 from kmod/attr_perf
kmod Jul 21, 2015
84f0d34
A fix to the ast interpreter gc visitor
kmod Jul 21, 2015
c850fac
Merge pull request #731 from kmod/gc_fixes
kmod Jul 21, 2015
94ee011
More travis-ci investigations
kmod Jul 21, 2015
6dea1b3
Merge pull request #730 from kmod/parsing_investigation
kmod Jul 21, 2015
823f5bf
fix return type for floatTrunc
kmod Jul 21, 2015
f93c504
Parsing: don't read back the cache file we just wrote
kmod Jul 21, 2015
aa9869d
Merge pull request #732 from kmod/fixes
kmod Jul 21, 2015
3d01a81
Revert "Can simplify InternedStringPool"
kmod Jul 21, 2015
bc15750
Revert "Merge pull request #718 from kmod/attr_interning"
kmod Jul 21, 2015
d34c14d
fix merge issues
kmod Jul 21, 2015
f2a936e
Merge pull request #734 from kmod/reverting
kmod Jul 21, 2015
cf04e09
Merge pull request #687 from rudi-c/docs
toshok Jul 21, 2015
9e2c674
Try using separate ccache dirs for debug/release
kmod Jul 15, 2015
77017c0
Add integration test for installing NumPy.
rudi-c Jul 21, 2015
de4b9ef
Have the gdb watcher try to match exit code better
kmod Jul 21, 2015
9f7a8d1
Interpreter: Cache lookup type for AST_Name stores
undingen Jul 19, 2015
6e41313
Slightly speedup ASTInterpreter::initArguments
undingen Jul 14, 2015
6994239
bump timeouts
kmod Jul 21, 2015
bdd472d
Disable the dbg-gcc build since it is having some issues
kmod Jul 21, 2015
1ed0cf7
Add some more checking for this assert
kmod Jul 21, 2015
5ff16de
Merge pull request #704 from kmod/travis_additions
kmod Jul 22, 2015
b3ea8ee
Merge pull request #738 from rudi-c/numpy
kmod Jul 22, 2015
df23c06
Merge pull request #723 from tjhance/update-libpypa
kmod Jul 22, 2015
e9d2448
Revert "revert attr interning" (f2a936e, #734)
kmod Jul 21, 2015
c19b8cd
Add some more debugging + asserts
kmod Jul 21, 2015
4a3f448
Fix a gc bug with codegen strings
kmod Jul 22, 2015
eb1bc9c
Fix parsing caching
kmod Jul 22, 2015
229ce69
Merge pull request #740 from kmod/reenable_attr_interning
kmod Jul 22, 2015
9d188a1
Merge pull request #742 from kmod/fix_parsing
kmod Jul 22, 2015
d098297
Add extra GC flags to objects for finalization ordering.
rudi-c May 20, 2015
debf207
Add support for the __del__ slot and some refactoring.
rudi-c Jul 2, 2015
847630c
Implement PyPy's finalization ordering algorithm.
rudi-c Jul 6, 2015
6ddd0f9
Tests for finalization code.
rudi-c Jul 6, 2015
93c02fa
No-op explicit deallocations and make GCs safe inside finalizers.
rudi-c Jul 20, 2015
987fa9e
Implement missing functionality for indexing and slicing.
rudi-c May 13, 2015
95fface
Handle more slicing edge cases.
rudi-c May 15, 2015
09df9da
Handle unicode string slicing.
rudi-c May 18, 2015
8d204ed
Merge pull request #672 from rudi-c/gcfinalizers4
toshok Jul 22, 2015
07f0a1a
Merge pull request #706 from undingen/interp_init
kmod Jul 22, 2015
3a75208
Try caching both the debug and release ccache dirs
kmod Jul 22, 2015
96027cd
bjit: omit frame pointer + use R12 for ASTInterpreter*
undingen Jul 22, 2015
d1eb84d
Make sure to intern attribute string in PyObject_SetAttr.
rudi-c Jul 22, 2015
0251f5f
Add pypy's (via US) bm_django
kmod Jul 21, 2015
d9709d1
Optimize isinstance
kmod Jul 21, 2015
a8ac40c
Inline boxBool more
kmod Jul 22, 2015
6add43f
Merge pull request #743 from undingen/bjit_omit_fp
kmod Jul 22, 2015
e689315
Merge pull request #536 from rudi-c/setslice
toshok Jul 23, 2015
885046a
Merge pull request #744 from rudi-c/fix_setstate
kmod Jul 23, 2015
f1129a8
Merge pull request #745 from kmod/perf2
kmod Jul 23, 2015
bed5aa2
Fix gc visiting code for running generators
undingen Jul 23, 2015
ea949d3
add float nb_power slot
Daetalus Jul 22, 2015
51a0a26
rewrite int pow, add error check and calculate pow with mod in single
Daetalus Jul 22, 2015
ff530a0
rewrite long pow, add error check and calculate pow with mod in single
Daetalus Jul 22, 2015
d3ba755
add more tests for pow into float.py and long.py
Daetalus Jul 22, 2015
32d78be
add more test value into float pow
Daetalus Jul 22, 2015
50f5d02
remove unreachable check statement, check rhs whether is even if it c…
Daetalus Jul 23, 2015
3ea0f91
add more test to long
Daetalus Jul 23, 2015
bfe7d79
Optimize slot_tp_getattr_hook
kmod Jul 23, 2015
f6c4298
A couple rewriting fixes / improvements
kmod Jul 23, 2015
0ac1423
Add class-level caching of whether __getattribute__ exists
kmod Jul 23, 2015
8728a05
Merge pull request #746 from undingen/small_issues2
kmod Jul 23, 2015
a96bd04
Reduce number of optimization passes we run
kmod Jul 23, 2015
5676aaa
bjit: inline trivial helper functions
undingen Jul 23, 2015
2716db6
Release leftover chunk in the TraceStack.
rudi-c Jul 23, 2015
395ef37
bump libpypa
Jul 23, 2015
5c166da
include cstddef before gmp.h to fix possible breakage with gcc-4.9 in…
Jul 23, 2015
899a4cb
Merge pull request #752 from rudi-c/leakfix
kmod Jul 23, 2015
fa424a3
Merge pull request #750 from undingen/bjit_helper
kmod Jul 23, 2015
76b3c33
Merge pull request #748 from kmod/perf2
kmod Jul 23, 2015
7add92f
Merge pull request #747 from kmod/getattr
kmod Jul 23, 2015
db5d450
Merge pull request #751 from toshok/gcc-4.9-gmp-fix
kmod Jul 23, 2015
0867bb4
Merge pull request #719 from Daetalus/pow
kmod Jul 23, 2015
cd09b0d
I think these can be non-release asserts
kmod Jul 23, 2015
7863807
Allow passing NULL for empty kwargs
kmod Jul 23, 2015
f4b8ab1
Release assert for more debugging info.
rudi-c Jul 23, 2015
5071e38
Merge pull request #755 from kmod/perf3
kmod Jul 24, 2015
4d2fcb2
enable PGO for gcc.
Jul 17, 2015
70d26de
bump travis to using gcc-4.9
Jul 23, 2015
1cce8da
add correct error message according to CPython
Daetalus Jul 24, 2015
bef560b
add more min and max tests with or without keyword argument
Daetalus Jul 24, 2015
c4260db
add keyword parameter to min and max, extract common part to min_max
Daetalus Jul 24, 2015
a0b5c48
Use cpythons lock implementation
undingen Jul 24, 2015
1c1dcdb
Allocate all ASTInterpreter instances on the stack and remove the int…
undingen Jul 16, 2015
16eed35
interpreter: Assign fixed slots (vregs) to symbols with fast or closu…
undingen Jul 17, 2015
d004418
Use cpythons lock implementation
undingen Jul 24, 2015
b534164
Merge pull request #757 from undingen/threadlock
kmod Jul 24, 2015
22759d1
Merge pull request #736 from undingen/interp_vregs4
kmod Jul 24, 2015
4cd2305
Merge pull request #739 from Daetalus/min_max
kmod Jul 24, 2015
5a76060
disable ccache if ENABLE_PGO is ON.
Jul 23, 2015
e94e3d1
don't pgo llvm. benchmarks don't seem affected and it should help ou…
Jul 25, 2015
e41d291
separate out PGO and LTO flags, so they can be enabled independently
Jul 25, 2015
7c6e10f
switch from generate:use builds named pyston_release_gcc_pgo:pyston_r…
Jul 25, 2015
f094057
reenable test_format
Daetalus Jul 26, 2015
057004c
check the whether has __long__ function in object, try to call it.
Daetalus Jul 26, 2015
0ae7825
if long is zero, do not add prefix when with oct
Daetalus Jul 26, 2015
b4a5816
revese the pyston changes in PyString_Formatlong
Daetalus Jul 26, 2015
cb0939c
Merge pull request #715 from tjhance/test_iter_cpython
kmod Jul 27, 2015
c42d339
Merge pull request #762 from tjhance/test_tuple_cpython
kmod Jul 27, 2015
a8f91c2
add other binary operators to old style class except pow, ipow, rpow
Daetalus Jul 24, 2015
5bb0f9b
re-enable test_aguassign
Daetalus Jul 26, 2015
954cd76
add more power tests for oldstyle class, including new-old mixded cal…
Daetalus Jul 27, 2015
0afbff1
Optimize calling str() and unicode()
kmod Jul 24, 2015
a6a326e
Add django_tiny microbenchmark
kmod Jul 24, 2015
63ec21c
Speed up a number of runtime functions
kmod Jul 24, 2015
bc73a3a
Add some more exceptions stats
kmod Jul 26, 2015
8795746
fix issue 689
corona10 Jul 27, 2015
87a906d
add test for testing recursive print
corona10 Jul 27, 2015
0fdbc57
Merge pull request #761 from kmod/perf2
kmod Jul 27, 2015
8e8c910
bjit: add support for the import nodes
undingen Jul 24, 2015
3d146ce
bjit: support some delete statements
undingen Jul 27, 2015
eb8e5c4
Merge pull request #764 from corona10/issue689
kmod Jul 27, 2015
d4ad2f7
copy instance_pow and instance_ipow with related function from CPython
Daetalus Jul 27, 2015
8095521
implement recursive printing of set and tuples.
corona10 Jul 27, 2015
aa5aaca
bjit: add support for make function and lambda nodes
undingen Jul 27, 2015
d18ff95
bjit: don't jit cold blocks after doing a OSR JIT compilation
undingen Jul 27, 2015
a2c06e4
copy PyNumber_Long and related function from CPython
Daetalus Jul 27, 2015
dfeff14
Templatize getattrInternal
kmod Jul 27, 2015
4a114aa
Partially-templatize len
kmod Jul 27, 2015
729feee
Fix exception handling in lookup_maybe
kmod Jul 27, 2015
f7367f1
Merge pull request #763 from Daetalus/old_style_class
kmod Jul 28, 2015
971519a
Merge pull request #760 from undingen/bjit_missing_core
kmod Jul 28, 2015
ce4c60a
add tuple test
corona10 Jul 28, 2015
ed14dd7
Templatize getitemInternal
kmod Jul 27, 2015
8170d8a
Add noexcept() specifiers
kmod Jul 28, 2015
9d55ac9
set is alsho unhashable data structure
corona10 Jul 28, 2015
52a94c1
Merge pull request #759 from Daetalus/test_format
kmod Jul 28, 2015
75e203a
Merge pull request #768 from kmod/exceptions2
kmod Jul 28, 2015
9f45f86
set test
corona10 Jul 28, 2015
ded39f2
Merge pull request #766 from corona10/recursive
kmod Jul 28, 2015
a62ba58
Templatize runtimeCall for different exception styles
kmod Jul 28, 2015
79b6133
implementation of dictionary's recursive printing
corona10 Jul 28, 2015
4c743cb
implementation of dictionary's recursive printing (format)
corona10 Jul 28, 2015
49eccf8
bjit: fix problems when setting bjit thresholds to 1
undingen Jul 28, 2015
b7c6d95
bjit: don't retry jiting very large blocks
undingen Jul 28, 2015
0bcfeb2
Register iterator types with the correct size
undingen Jul 28, 2015
c011fb3
Merge pull request #770 from undingen/bjit_problems
kmod Jul 28, 2015
b8b126e
Merge pull request #769 from kmod/exceptions2
kmod Jul 28, 2015
273bf3d
Add some PerThreadSet features
kmod Jul 28, 2015
b4a9fa1
Minor cleanup
kmod Jul 28, 2015
f7fed53
Merge pull request #727
kmod Jul 28, 2015
f49d093
Add pyston_pgo as an alias for pyston_release_gcc_pgo
kmod Jul 28, 2015
b620363
Force instantiate these templates as well
kmod Jul 28, 2015
ce62f37
Merge pull request #771 from kmod/threading_local_debugging
kmod Jul 28, 2015
215bef6
Merge pull request #773 from kmod/pgo_merge
kmod Jul 28, 2015
8609684
using try-catch block for throwing exceptions
corona10 Jul 29, 2015
9966b57
throw exception when a error occured in set slice index
Daetalus Jul 29, 2015
6f55634
Remove the isUserDefined helper function which is no longer useful.
rudi-c Jul 29, 2015
6052361
Move some small helper functions from objmodel.cpp to util.cpp
rudi-c Jul 29, 2015
de52ad0
Remove unused static strings.
rudi-c Jul 29, 2015
3843b3d
Move hidden class code into a separate file.
rudi-c Jul 29, 2015
d99f473
modify exeception handling during repr
corona10 Jul 30, 2015
2196761
remove unpretty blank line
corona10 Jul 30, 2015
529c888
copy PyNumber_Coerce from CPython
Daetalus Jul 30, 2015
6d286b8
add coerce builtin function
Daetalus Jul 30, 2015
5b9e515
add some function to oldstyle class
Daetalus Jul 30, 2015
2a80018
add test for new added function to oldstyle class
Daetalus Jul 30, 2015
bb31b6e
Merge pull request #784 from rudi-c/cleanup
kmod Jul 30, 2015
7405db0
I guess at some point this changed
kmod Jul 29, 2015
39b3238
Get the _ctypes module to compile.
rudi-c Jul 23, 2015
bf585e2
Add dummy function implementations to be able to link _ctypes module.
rudi-c Jul 24, 2015
d751470
Handle edge case with C extension metaclasses.
rudi-c Jul 24, 2015
f05bdc2
Temporarily remove assertions to be able to import _ctypes.
rudi-c Jul 24, 2015
69880e2
Refactor: remove extra ExceptionStyle namespace
kmod Jul 28, 2015
65f9d4b
Have the llvm jit support receiving capi exceptions
kmod Jul 28, 2015
d8bf75e
Make some getattrs (in try blocks) use capi exceptions
kmod Jul 29, 2015
2b4fd9c
Add rewrites for capi-style getattrs
kmod Jul 30, 2015
719d4e9
Make `import ctypes` work.
rudi-c Jul 27, 2015
ce091ae
Make test fallback to not using CTypes even though we can import it.
rudi-c Jul 28, 2015
7ece575
Merge pull request #786 from kmod/exceptions3
kmod Jul 30, 2015
988e16e
PGO fix
kmod Jul 31, 2015
4fc2444
some changing about exception handling and remove blank line
corona10 Jul 31, 2015
15655a6
Inherit Py_TPFLAGS_CHECKTYPES.
rudi-c Jul 30, 2015
81825c8
More test diagnostics if pyston crashes early
kmod Jul 31, 2015
8a87d9d
remove the the methods that not belong instance and add __index__
Daetalus Jul 31, 2015
a4515f9
adjust old style class test, add __index__ test
Daetalus Jul 31, 2015
407a627
fix build and support interpreter frames inside getCurrentPythonLine()
undingen Jul 31, 2015
ceb3e44
bjit: directly inline recordType() function
undingen Jul 31, 2015
dd7aa0d
Cache SourceInfo::getScopeInfo
undingen Jul 31, 2015
9000217
Add tip on how to debug infinite recursive bugs from tp_ slots.
rudi-c Jul 31, 2015
bdf0764
Merge pull request #789 from rudi-c/docs_slots
kmod Jul 31, 2015
2f60cce
Merge pull request #788 from undingen/bjit_opt2
kmod Aug 1, 2015
b04977a
Merge pull request #767 from rudi-c/ctypes
kmod Aug 1, 2015
daa197c
Make raise statements in try blocks use capi exceptions
kmod Jul 31, 2015
fc02e94
Fast-path passing NULL kwargs
kmod Jul 31, 2015
ae77051
capi exceptions for getitems
kmod Jul 31, 2015
0514bf3
Add a testing mode to force-use capi exceptions
kmod Jul 31, 2015
3f88340
Merge pull request #787 from Daetalus/old_style_class
kmod Aug 1, 2015
b82d141
Merge pull request #790 from kmod/exceptions2
kmod Aug 1, 2015
b784a5c
last commit before return to base :-)
corona10 Aug 1, 2015
017fb54
re-enable test_slice
Daetalus Aug 1, 2015
6fd62fd
add four slice builtin functions: indices, __hash__, compare, __redu…
Daetalus Aug 1, 2015
ea3daeb
Build fix: I think this flag confuses clang
kmod Aug 2, 2015
00df199
enable test_unary.py
Daetalus Aug 3, 2015
8f2ec50
add compare support and __pos__ to complex
Daetalus Aug 3, 2015
f07534a
add __pos__ to float
Daetalus Aug 3, 2015
4881de1
use new callattr to find attribute function, and add error check
Daetalus Aug 3, 2015
ff6fe32
Merge pull request #791 from Daetalus/test_slice
kmod Aug 3, 2015
7c2b76c
Merge pull request #774 from corona10/recursive
kmod Aug 3, 2015
47f126a
Merge pull request #793 from Daetalus/test_unary
kmod Aug 3, 2015
dcea152
getiter: use tp_iter for non python types
undingen Aug 3, 2015
baae318
microoptimize: PyDict_Contains(attrwrapper_cls, str)
undingen Aug 3, 2015
8ffb67a
Merge pull request #794 from undingen/tp_iter
kmod Aug 3, 2015
c2f0b3c
WIP: bjit: register functions with GDB
undingen Aug 4, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
build

Makefile.local
tools/astprint
tools/demangle
tools/mcjitcache
tools/mcjitcache_release
tools/publicize
tools/publicize_release

pyston
pyston_opt
pyston_noasserts
Expand All @@ -15,6 +19,16 @@ pyston_debug
pyston_prof
pyston_profile
pyston_release
pyston_grwl
pyston_grwl_dbg
pyston_nosync
pyston_gcc
pyston_release_gcc
pyston_release_gcc_pgo
pyston_release_gcc_pgo_instrumented
pystontmp*/
/*_unittest

*.cache
tests/t.py
tests/t2.py
Expand All @@ -28,6 +42,7 @@ stdlib*.ll
oprofile_data
pprof.jit
tags
TAGS
*.pyc

perf.data
Expand All @@ -38,4 +53,16 @@ gmon.out
find_problem.status
*.expected_cache

plugins/clang_capi

*.so
*.pch

compile.log

*.swp
*.swo

*.out

*~
33 changes: 33 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[submodule "libunwind"]
path = libunwind
url = git://git.sv.gnu.org/libunwind.git
ignore = all
[submodule "libpypa"]
path = libpypa
url = git://github.com/vinzenz/libpypa.git
[submodule "test/integration/django"]
path = test/integration/django
url = https://github.com/django/django
[submodule "test/integration/virtualenv"]
path = test/integration/virtualenv
url = https://github.com/dropbox/virtualenv
[submodule "lz4"]
path = lz4
url = git://github.com/Cyan4973/lz4.git
[submodule "test/integration/pycrypto"]
path = test/integration/pycrypto
url = https://github.com/dlitz/pycrypto.git
[submodule "test/integration/gflags"]
path = test/integration/gflags
url = https://github.com/google/python-gflags
ignore = untracked
[submodule "test/integration/sqlalchemy"]
path = test/integration/sqlalchemy
url = https://github.com/zzzeek/sqlalchemy
[submodule "test/integration/pyxl"]
path = test/integration/pyxl
url = https://github.com/dropbox/pyxl.git
ignore = untracked
[submodule "jemalloc"]
path = jemalloc
url = git://github.com/jemalloc/jemalloc.git
84 changes: 84 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
language: cpp

compiler:
- clang
- gcc

env:
matrix:
- TRAVIS_BUILD_TYPE=Debug CCACHE_DIR=$HOME/.ccache_debug
- TRAVIS_BUILD_TYPE=Release CCACHE_DIR=$HOME/.ccache_release
global:
- PYSTON_RUN_ARGS=G

matrix:
exclude:
- compiler: gcc
env: TRAVIS_BUILD_TYPE=Debug CCACHE_DIR=$HOME/.ccache_debug

# use travis-ci docker based infrastructure
sudo: false

cache:
directories:
- $HOME/.ccache_debug
- $HOME/.ccache_release

addons:
apt:
sources:
- kubuntu-backports
- llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
packages:
- autoconf
- ccache
- clang-3.5
- cmake
- g++-4.8
- gdb
- libbz2-dev
- libgmp3-dev
- liblzma-dev
- libncurses5-dev
- libreadline-dev
- libsqlite3-dev
- libtool
- ninja-build
- python-dev
- texlive-extra-utils
- libcurl4-openssl-dev

before_install:
- if [ "$CC" = "clang" ]; then export CC="clang-3.5" CXX="clang++-3.5"; fi
- if [ "$CC" = "gcc" ]; then export CC="gcc-4.8" CXX="g++-4.8"; fi
- $CXX --version

install:
- git clone git://github.com/llvm-mirror/llvm.git ~/pyston_deps/llvm-trunk
- git clone git://github.com/llvm-mirror/clang.git ~/pyston_deps/llvm-trunk/tools/clang
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- mkdir ~/pyston-build && cd ~/pyston-build
- make -C $TRAVIS_BUILD_DIR llvm_up
- bash $TRAVIS_BUILD_DIR/tools/configure_travis.sh

before_script:
- mysql -e 'create database mysqldb_test charset utf8;'

script:
- ccache -z
- ninja -j4 pyston check-deps && PYSTON_RUN_ARGS=G ctest --output-on-failure
- ccache -s
- if [ -n "$(git status --porcelain --untracked=no)" ]; then echo "test suite left the source directory dirty"; git status; false; fi

os:
- linux
# - osx

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/7256425a36658faa8b9b
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
8 changes: 8 additions & 0 deletions .vimrc.dir
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set wildignore+=*.expected_cache,*.pyc,*.out,*.bc,*.d,*.o

let g:pyston_top = expand('<sfile>:p:h')
command! M execute ":make -C " . g:pyston_top . "/src -j1 COLOR=0 USE_DISTCC=0"
command! L execute ":cfile " . g:pyston_top . "/src/compile.log"

ca m M
ca l L
Loading