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

implement tp_* function pointers for set object #1416

Open
wants to merge 4,993 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4993 commits
Select commit Hold shift + click to select a range
f4ea810
bjit: free codeblocks after tiering up to the LLVM jit
undingen Aug 16, 2016
ce0a5dd
Merge pull request #1329 from undingen/free_bjit_code
undingen Aug 17, 2016
d713267
string interning: make it slightly more space efficient
undingen Aug 15, 2016
d15906e
hidden classes: free classes of singleton type
undingen Aug 3, 2016
7f10290
Merge pull request #1332 from undingen/free_singleton_hidden_classes
undingen Aug 19, 2016
aa5fa65
switch from the SSE prefetch to __builtin_prefetch
undingen Aug 19, 2016
f74e9ee
Merge pull request #1331 from undingen/mem_string_interning
undingen Aug 19, 2016
e9ced45
Merge pull request #1333 from undingen/prefetch
undingen Aug 19, 2016
7f5b72b
Add cffi v1.7 test
kmod Aug 20, 2016
d7be509
Remove some old GC cruft from the threading code
kmod Aug 19, 2016
fe5fc74
Purge the old GRWL (gil-free) code
kmod Aug 20, 2016
2a4e46e
Change _PyThreadState_Current handling
kmod Aug 19, 2016
61a7ab6
Get cffi-1.7 building
kmod Aug 20, 2016
73bf315
Small import safety improvement
kmod Aug 13, 2016
0f5f16a
Reduce cffi test size
kmod Aug 20, 2016
09470b2
Attempt at better message when the tester itself crashes
kmod Aug 20, 2016
9b46190
Fix this set issue
kmod Aug 21, 2016
7c1ee4c
Merge pull request #1334 from kmod/threading
kmod Aug 21, 2016
b2a3fb2
misc small memory size reductions
undingen Aug 19, 2016
98af448
ParamNames: only store AST_Name* or char* but not both
undingen Aug 19, 2016
85b1b94
remove moving gc define we don't need it anymore
undingen Aug 22, 2016
8481459
bjit: allocate 25% smaller codeblocks
undingen Aug 22, 2016
0324606
Merge pull request #1335 from undingen/minor_mem
undingen Aug 22, 2016
a36654a
MCJIT: free loaded objects
undingen Aug 22, 2016
76c7d50
Merge pull request #1336 from undingen/llvm_free_object_files
undingen Aug 22, 2016
bd490b8
remove libpypa
Aug 22, 2016
a120b2a
Change getMagic function to a constant and group the constants
Aug 22, 2016
0abee10
Merge pull request #1337 from Daetalus/libpypa
undingen Aug 23, 2016
bedb3f3
bjit: fix pointer reuse problem
undingen Aug 22, 2016
e4f5dd1
store keywords names inside the AST
undingen Aug 22, 2016
435131e
recordType: don't call recordType inside getattr rewrite path
undingen Aug 23, 2016
afec055
llvm tier: remove type recorder usage
undingen Aug 22, 2016
e790c69
moves the TypeRecorder ownership to the ICInfo
undingen Aug 23, 2016
64961ca
remove dead code
undingen Aug 23, 2016
0814d21
Merge pull request #1338 from undingen/fix_pointer_reuse_problems
undingen Aug 23, 2016
0971100
remove lazy scoping analysis option
undingen Aug 23, 2016
49502e9
move ScopeInfo ownership to SourceInfo
undingen Aug 23, 2016
47d6b1e
make ScopingAnalysis a shared_ptr
undingen Aug 23, 2016
180c5bf
Undo all the places we changed installed paths
kmod Aug 22, 2016
3f5b4b8
Semi-unrelated fix: don't include extra include files by accident
kmod Aug 25, 2016
83e57ca
Get rid of lib_pyston/
kmod Aug 26, 2016
d333615
Update integration tests for new site-packages location
kmod Aug 26, 2016
75d7319
Merge pull request #1341 from kmod/directories
kmod Aug 29, 2016
e379020
Fix leak check after path changes
undingen Aug 30, 2016
92fc9c3
Merge pull request #1343 from undingen/fix_leak_checker
undingen Aug 30, 2016
c5aa72a
Turn off implicit-function check in release mode
kmod Aug 30, 2016
9e1ed8a
Properly throw ImportErrors on dlopen failure
kmod Aug 30, 2016
0611d82
Merge pull request #1345 from kmod/implicit_function_declaration
kmod Aug 30, 2016
b4ece35
microptimization: reduce number of calls to BoxedFrame::handleFrameExit
undingen Aug 30, 2016
e432e29
use DEFAULT_CLASS_SIMPLE in more cases
undingen Aug 31, 2016
0be24ae
code type: do not use GC (same as cpython)
undingen Aug 31, 2016
ea8890e
Merge pull request #1348 from undingen/fewer_handleFrameExit
undingen Aug 31, 2016
7eacfcd
Create all FunctionMetadatas for a module at once
kmod Aug 31, 2016
2783ab4
Merge pull request #1349 from kmod/scoping
kmod Sep 1, 2016
b470153
Make GCC 5.4 happy with those type casting
Daetalus Sep 1, 2016
102e352
Use is_trivially_copy_constructible instead has_trivial_copy_constructor
Daetalus Sep 1, 2016
b64c525
Disable libunwind doc generation
Daetalus Sep 1, 2016
d824030
Merge pull request #1350 from Daetalus/building_issue
undingen Sep 1, 2016
111ca52
Revert "Merge pull request #1349 from kmod/scoping"
kmod Sep 1, 2016
dc8e825
Merge pull request #1351 from kmod/scoping_branch
kmod Sep 2, 2016
1b10176
Get rid of FunctionMetadata
kmod Sep 1, 2016
bcd8064
Move filename and name off of SourceInfo
kmod Sep 1, 2016
2affae9
Get rid of source->ast
kmod Sep 2, 2016
798c4da
Move doc+name from the function ctor to code ctor
kmod Sep 2, 2016
b2d50bd
Remove empty code.h file
kmod Sep 2, 2016
5f193e2
Make gcc happy
kmod Sep 2, 2016
0055cde
Make clang+gcc happy
kmod Sep 2, 2016
362a327
Merge pull request #1353 from kmod/noastref
kmod Sep 2, 2016
e4e2371
fix a bug where compare could ignore CAPI exceptions and add _heapq
undingen Aug 8, 2016
6ca5522
Merge pull request #1355 from undingen/_heapq
undingen Sep 5, 2016
42a07f2
Copy ast->bst
kmod Sep 2, 2016
5e76425
Migrated everything to bst except for cfg
kmod Sep 2, 2016
763cc65
CFG changes
kmod Sep 2, 2016
3b413f5
Clean up some dead code from the cfg changes
kmod Sep 6, 2016
48eb8f3
Merge pull request #1356 from kmod/bst
kmod Sep 6, 2016
6101f68
Revert "Revert "Merge pull request #1349 from kmod/scoping""
kmod Sep 6, 2016
aba408b
Merge commit '6101f68' into ast
kmod Sep 6, 2016
1ac2322
Minor improvements
kmod Sep 6, 2016
ad61645
Remove conflicting command-line flags
kmod Sep 6, 2016
d1e16e8
Merge pull request #1359 from kmod/metaserver_merge
kmod Sep 7, 2016
50d62a1
copy CPYTHON/setup.py from CPython 2.7.7 directlly
Daetalus Sep 5, 2016
e132792
Add some Pyston modification to from_cpython/setup.py
Daetalus Sep 7, 2016
9ef680b
AST & BST: remove unnecessary nodes and fields
undingen Sep 6, 2016
f2365ec
AST & BST: make enums smaller
undingen Sep 7, 2016
1228d98
BST: remove column field
undingen Sep 7, 2016
0dea31b
Merge pull request #1360 from undingen/astbst_cleanup
undingen Sep 7, 2016
6926ccf
AST: deallocate nodes
undingen Sep 7, 2016
128e2b0
Merge pull request #1361 from undingen/delete_ast_nodes
undingen Sep 8, 2016
c98fb20
Merge pull request #1358 from dropbox/ast
undingen Sep 8, 2016
6681b73
Merge pull request #1354 from Daetalus/building_issue
kmod Sep 8, 2016
64d4069
Be able to run an unmodified virtualenv
kmod Sep 6, 2016
928d5de
Need to handle the zip_safe issues as well
kmod Sep 10, 2016
bcd9793
These cpython tests are working now
kmod Sep 6, 2016
450242d
Fix test_bz2.py
kmod Sep 10, 2016
526a0fc
Get test_wait3 and test_wait4 working
kmod Sep 10, 2016
7747b4b
We're failing some tests in CI due to recursion depth issues
kmod Sep 10, 2016
de4d0a3
Set dont_write_bytcode=True by default
kmod Sep 10, 2016
3a41df7
Merge pull request #1340 from kmod/cpython_tests
kmod Sep 10, 2016
91b65a3
Merge pull request #1357 from kmod/unmodified_venv
kmod Sep 10, 2016
5c5bf96
add override keyword to make gcc 5 happy
Daetalus Sep 11, 2016
26048a7
update test notes, this test are passed
Daetalus Sep 11, 2016
9042baf
Merge pull request #1362 from Daetalus/building_issue
kmod Sep 12, 2016
4af0656
Add a bunch of missing symlinks
kmod Sep 10, 2016
332539d
Make -q to tester.py args
kmod Sep 10, 2016
715ace3
Improve recursion-depth checking a bit
kmod Sep 10, 2016
ee91219
Some minor improvements
kmod Sep 10, 2016
4a8040c
Rename our '-O' flag to '-L'
kmod Sep 10, 2016
bc10d36
ulimit: change from RSS to virtual size
kmod Sep 10, 2016
f17f3b0
test_itertools was failing because of a version mismatch between the …
kmod Sep 10, 2016
032b0dd
Get test_thread.py working
kmod Sep 10, 2016
b2b748e
Get test_coding.py working
kmod Sep 11, 2016
ac1fa8f
Get test_socket working (better)
kmod Sep 11, 2016
7f1d9eb
Get test_threading_local.py working
kmod Sep 11, 2016
3e957ac
Change these to absolute imports
kmod Sep 11, 2016
3108e45
Took a pass over most of the tests
kmod Sep 10, 2016
2522afa
Fix some issues I created
kmod Sep 12, 2016
4a1b44e
Split test_lib2to3 into small and large variants
kmod Sep 12, 2016
a2c2b89
Fix lint issue
kmod Sep 13, 2016
75562e5
Merge pull request #1363 from kmod/cpython_tests
kmod Sep 13, 2016
f60f678
Change section memory manager to fix performance problem in long-runn…
corona10 Sep 13, 2016
e5b3483
add comment and llvm's remove_if for temporary
corona10 Sep 14, 2016
30e8e53
Fix docs about stats option
sh92 Sep 19, 2016
70993f0
Merge pull request #1369 from sh92/fixDocs
undingen Sep 19, 2016
7765838
Add type.__instancecheck__ and __subclasscheck__
kmod Sep 20, 2016
c91ea1b
Merge pull request #1370 from kmod/subclasscheck
kmod Sep 21, 2016
bb154da
add diff patch
corona10 Sep 20, 2016
db4159c
Make these properly CAPI functions
kmod Sep 21, 2016
19baa92
Merge pull request #1365 from corona10/section
kmod Sep 21, 2016
1f45c0d
Merge pull request #1371 from kmod/subclasscheck
kmod Sep 26, 2016
cc5013c
Update lz4 to a version compatible with gcc 4.9+
kmod Sep 27, 2016
3f1a0e1
Merge pull request #1375 from kmod/lz4_gcc
kmod Sep 27, 2016
754ddae
Add test for typing.py and get it working
kmod Sep 28, 2016
bfb0ec4
Now that object has __doc__, fix others
kmod Sep 28, 2016
4e10a4f
Merge pull request #1378 from kmod/typing
kmod Sep 29, 2016
8e739ff
Add default arg for 'owner' in function.__get__
kmod Sep 30, 2016
fa775e2
Fix optimization that is wrong for abstract classes
kmod Sep 25, 2016
9dfc01d
Eager-decref the iterable when breaking a loop
kmod Sep 25, 2016
b6e9389
Add a PyFrame_New test
kmod Oct 4, 2016
3cb7d7b
Support "asynchronous exceptions"
kmod Sep 24, 2016
bfdaf2e
Hackish imp.get_magic workaround
kmod Sep 13, 2016
5fdbbfc
Better log message here
kmod Sep 21, 2016
3e10ff4
Recursion-depth-checking fixes
kmod Sep 20, 2016
a20593e
Special refcounting exemption for buggy extensions
kmod Aug 17, 2016
7e2cbb5
More attrwrapper-instead-of-dict support
kmod Sep 23, 2016
482d2e8
BST: convert all nodes to directly operate at vregs instead of names
undingen Sep 8, 2016
c0a273f
BST: remove the cxx_exception_count field
undingen Sep 28, 2016
9cd8e75
Merge pull request #1377 from undingen/new_bst4
undingen Oct 5, 2016
b596a71
Some more recursion-depth-checking fixes
kmod Oct 5, 2016
a61d289
Merge remote-tracking branch 'origin/master' into metaserver_merge
kmod Oct 5, 2016
4e408bf
Merge with bst changes
kmod Oct 5, 2016
c026399
"fix" inconsistent overrides
kmod Oct 5, 2016
1961ce6
Merge pull request #1379 from kmod/metaserver_merge
kmod Oct 6, 2016
ff6ca0d
BST: factor out repeated code patterns into a macro (no functional ch…
undingen Oct 6, 2016
21ac70f
rename ConstantVRegInfo to CodeConstants
undingen Oct 6, 2016
7f52a9a
code object: call destructor and free bjit code
undingen Oct 6, 2016
a256041
move constants from the module into CodeConstants (=code object)
undingen Oct 6, 2016
106533f
Merge pull request #1383 from undingen/cleanup_bst
undingen Oct 6, 2016
3db0ec0
BST: remove the flattening visitor
undingen Oct 6, 2016
357585c
BST: skip visiting the body of BST_ClassDef and BST_FunctionDef nodes
undingen Oct 6, 2016
ec3be90
BSTVisitor: pass code constants always in
undingen Oct 6, 2016
9d5d45a
BST: remove pointer to FunctionDef and ClassDef and the code object p…
undingen Oct 6, 2016
077b8ee
BST: remove pointer to keyword_names and replace it with index into t…
undingen Oct 6, 2016
ae58d06
BST: use constant table for the interned strings
undingen Oct 4, 2016
63eca7c
Fix instancemethod comparisons
kmod Oct 11, 2016
f7aa77b
Remove this failing test
kmod Oct 13, 2016
00bb5d2
Merge pull request #1384 from undingen/bst_preparation_for_gapless
kmod Oct 19, 2016
38ab938
Merge pull request #1387 from kmod/instancemethods
kmod Oct 19, 2016
91e36ee
Fix attrwrapper comparisons
kmod Oct 19, 2016
f92c095
Fix tp_richcompare optimization for dicts
kmod Oct 22, 2016
defc315
Merge pull request #1388 from kmod/instancemethods
kmod Oct 25, 2016
138433d
add back an assert which I accidentally removed in the BST change
undingen Nov 4, 2016
40cb800
BST: switch to a gapless bytecode
undingen Oct 6, 2016
1138c9b
CFG: Prune unnecessary blocks from the CFG
undingen Nov 4, 2016
eb4e795
add documentation for TrackingVRegPtr and delete BST_FunctionDef and …
undingen Nov 5, 2016
e825c28
Typo fixes from PR #1389
kmod Nov 6, 2016
a0e6300
jemalloc: build with profiling support
undingen Nov 5, 2016
0d67ef1
avro test: looks like one test fails because a domain is down
undingen Nov 7, 2016
bc7ae35
paste test: increase number of failures temporarily
undingen Nov 7, 2016
00d51fe
Merge pull request #1393 from undingen/jemalloc_prof
undingen Nov 7, 2016
36bac9a
Get dict ordering closer to CPython's
kmod Nov 3, 2016
498168d
Fix this to be closer to CPython's implementation
kmod Nov 4, 2016
8939e97
Fix some other misc issues
kmod Nov 4, 2016
c83cb29
Merge pull request #1394 from kmod/pr_1389
kmod Nov 8, 2016
4e58ed3
Merge pull request #1392 from kmod/cpython_dict2
kmod Nov 8, 2016
0df5d7b
Fix missing includes
kmod Nov 8, 2016
581cebc
BST: merge MakeFunction with FunctionDef and MakeClass with ClassDef
undingen Nov 9, 2016
eb3edfd
Add "log hashing" to see new failures
kmod Nov 8, 2016
236a402
Merge pull request #1391 from undingen/bst_inplace
undingen Nov 10, 2016
93df6ef
Merge pull request #1395 from kmod/log_hash
kmod Nov 10, 2016
bb6a207
Compatibility hack: create "python"->"pyston" symlink
kmod Sep 14, 2016
0558eb9
Add param names for str.encode and decode
kmod Sep 23, 2016
db480a6
Much more testing for this
kmod Nov 11, 2016
33c4036
Fix exec name-forcing behavior
kmod Nov 10, 2016
2b22b45
Improve BoxedCode argnames a bit
kmod Sep 23, 2016
385a628
Add param names to type.__call__
kmod Oct 1, 2016
7c562fa
Fix str.islower
kmod Oct 3, 2016
1186883
Fix list compare order
kmod Oct 3, 2016
50128e6
Allow calling __call__ explicitly
kmod Oct 3, 2016
2e5432b
CFGBlock: remove successors vector
undingen Nov 7, 2016
ee6caca
update section ordering
undingen Nov 10, 2016
b3f86e6
rename CFGBlock::getLastStmt to getTerminator
undingen Nov 12, 2016
dfac0bd
Fix dict memory leak
kmod Nov 12, 2016
9aaee5b
Leak-finding improvement
kmod Nov 12, 2016
6ce7673
Add some more param names
kmod Nov 12, 2016
b3c96f0
Try to debug travis-ci disk space issues
kmod Nov 12, 2016
17ab177
Merge pull request #1396 from kmod/metaserver_merge
kmod Nov 13, 2016
34317fe
Merge pull request #1399 from undingen/bst_inplace2
undingen Nov 14, 2016
8d1bd53
jemalloc: update to 4.3.1 (latest release)
undingen Nov 15, 2016
d3fe8f9
Merge pull request #1400 from undingen/jemalloc_431
undingen Nov 15, 2016
567af9b
Merge pull request #1397 from kmod/exec_name
kmod Nov 15, 2016
22fddcd
Add PyMethod_SetSelf API to let extensions can change method's im_self
Daetalus Nov 18, 2016
e04e9e2
fix 'make package'
undingen Nov 21, 2016
5fe3e35
Update release notes for 0.6
undingen Nov 21, 2016
255621b
Merge pull request #1401 from undingen/release_v060
undingen Nov 21, 2016
b51bf84
Bump version numbers
undingen Nov 22, 2016
6bc1b02
Change the field name vreg_name to index_id in BST_ImportFrom and
Daetalus Nov 18, 2016
5771404
Add ellipsis_cls->freeze()
Daetalus Nov 22, 2016
9010cc3
If the rewrite was not success, do not check the return convention.
Daetalus Nov 22, 2016
3ed15d8
update to cpython 2.7.8
aisk Oct 5, 2016
ff42c0f
fix link to v0.6 blog post
undingen Nov 23, 2016
e4e34f9
createAfter: don't crash when BB is empty
undingen Nov 23, 2016
e25a0f7
Merge pull request #1402 from undingen/fix_createAfter
undingen Nov 23, 2016
542d0df
FrameInfo: store current statement as offset from the bytecode start
undingen Nov 22, 2016
b0cb682
Merge pull request #1403 from undingen/current_stmt_offset
undingen Nov 23, 2016
f3e297c
llvm JIT: give Py_True and Py_False a name to make the IR easier to read
undingen Nov 24, 2016
344d03e
llvm JIT: reuse GV for the same relocatable pointer value
undingen Nov 24, 2016
9b00f60
llvm JIT: don't call unboxInt/unboxFloat on constant boxed values
undingen Nov 24, 2016
55d7559
Merge pull request #1404 from undingen/llvm_less_unboxing
undingen Nov 25, 2016
1250809
ParamNames: don't leak BST_Name nodes
undingen Nov 28, 2016
7f460c6
Merge pull request #1409 from undingen/fix_param_names_leak
undingen Nov 28, 2016
2f1cac8
Merge pull request #1380 from aisk/update-cpython
kmod Nov 29, 2016
e3ec7f4
CodeConstants: own all constants and cleanup code
undingen Nov 25, 2016
0a1ca44
CFG: handle InternedStrings like normal string constants
undingen Nov 29, 2016
7f25f88
Merge pull request #1410 from undingen/cleanup_codeconstants
undingen Nov 29, 2016
026c988
Add PyObject_GetDict and other two APIs
Daetalus Nov 22, 2016
963eea3
Merge pull request #1398 from Daetalus/small_fixings
undingen Dec 2, 2016
b675b68
avro: one test error is gone
undingen Dec 5, 2016
0e951dd
llvm tier: inline invoke instructions
undingen Dec 5, 2016
14586ac
Merge pull request #1411 from undingen/inlining_invoke
undingen Dec 5, 2016
d7e9d29
microopt: use a TinyPtrVector for storing osr_versions
undingen Dec 15, 2016
ba4f0fc
OSR: the first time we do a OSR of a function create a type specific …
undingen Dec 12, 2016
1729dc8
small cleanup
undingen Dec 16, 2016
f222fff
microopt: PyIndex_Check, PySlice_GetIndicesEx
undingen Dec 12, 2016
7158547
add list freelist
undingen Dec 12, 2016
4ce041b
PyArg_ParseTupleAndKeywords: micropt "O|" and "OO|"
undingen Jan 15, 2017
76c4d49
Merge pull request #1413 from undingen/microopt_pyarg2
undingen Jan 15, 2017
f05d970
Merge pull request #1412 from undingen/osr_type_spec
undingen Jan 15, 2017
fee6ba3
[Clean Up] Remove unused parmameter in BST_Name.
corona10 Jan 19, 2017
f149857
Merge pull request #1414 from corona10/unused
undingen Jan 19, 2017
f1ffbd8
implement tp_* function pointers for set object
aisk Jan 21, 2017
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.
29 changes: 27 additions & 2 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,9 +19,17 @@ 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
*.bc
stdlib.ll
*.o
Expand All @@ -28,6 +40,7 @@ stdlib*.ll
oprofile_data
pprof.jit
tags
TAGS
*.pyc

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

plugins/clang_capi

*.so
*.pch

compile.log

*.swp
*.swo

*.out

*~
41 changes: 41 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[submodule "test/lib/django"]
path = test/lib/django
url = /~https://github.com/django/django
[submodule "test/lib/virtualenv"]
path = test/lib/virtualenv
url = /~https://github.com/dropbox/virtualenv
[submodule "test/lib/pycrypto"]
path = test/lib/pycrypto
url = /~https://github.com/dlitz/pycrypto.git
[submodule "test/lib/gflags"]
path = test/lib/gflags
url = /~https://github.com/google/python-gflags
ignore = untracked
[submodule "test/lib/sqlalchemy"]
path = test/lib/sqlalchemy
url = /~https://github.com/zzzeek/sqlalchemy
[submodule "test/lib/pyxl"]
path = test/lib/pyxl
url = /~https://github.com/dropbox/pyxl.git
ignore = untracked
[submodule "build_deps/libunwind"]
path = build_deps/libunwind
url = /~https://github.com/pathscale/libunwind.git
ignore = all
[submodule "build_deps/lz4"]
path = build_deps/lz4
url = git://github.com/Cyan4973/lz4.git
[submodule "build_deps/jemalloc"]
path = build_deps/jemalloc
url = git://github.com/jemalloc/jemalloc.git
ignore = untracked
[submodule "test/lib/decorator"]
path = test/lib/decorator
url = /~https://github.com/micheles/decorator
[submodule "test/lib/pyinotify"]
path = test/lib/pyinotify
url = /~https://github.com/seb-m/pyinotify.git
[submodule "test/lib/sqlalchemy_0.5"]
path = test/lib/sqlalchemy_0.5
url = /~https://github.com/zzzeek/sqlalchemy
ignore = untracked
96 changes: 96 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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
- gfortran
- libatlas-dev
- libatlas-base-dev
- libbz2-dev
- libgeoip-dev
- libgmp3-dev
- libmpfr-dev
- liblzma-dev
- libncurses5-dev
- libreadline-dev
- libsqlite3-dev
- libtool
- ninja-build
- python-dev
- libcurl4-openssl-dev
- libxml2-dev
- libxslt1-dev
- libssl-dev
- swig

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 "you@example.com"
- git config --global user.name "Your Name"
- git submodule update --init --recursive
- 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:
- df
- ccache -z
- time ninja -j4 pyston check-deps && PYSTON_RUN_ARGS=G travis_wait 60 ctest --output-on-failure
- ccache -s
- df
- free -m
# - 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