about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-10-12fix test to include a main() functionNiko Matsakis-0/+3
2011-10-12it is also legal to call unsafe functions from other unsafe functionsNiko Matsakis-0/+10
2011-10-12Add unsafe blocks, unsafe functions, and two rudimentary testsNiko Matsakis-6/+30
related to them
2011-10-12Extend the unchecked block stuff to allow unsafe blocks as well.Niko Matsakis-35/+114
2011-10-12expand purity to include unsafeNiko Matsakis-18/+29
2011-10-12move ctags.rust into src/etcNiko Matsakis-0/+7
2011-10-12Make build_environment and trans_bind_thunk GEP bound arguments the sameBrian Anderson-5/+22
These functions both use GEP_tup_like to get at the arguments bound to the environment, but they were starting from a different 'level' of the environment-box structure. Frighteningly, this was leading to them having different opinions of how the bound arguments were aligned in some cases.
2011-10-12Simplify copying of uniquesMarijn Haverbeke-27/+3
We can call take glue, rather than duplicating it inline.
2011-10-12[Tests] added float testsDavid Rajchenbach-Teller-0/+20
2011-10-12[Renaming] str_to_float is now float::from_str, float_to_str is now ↵David Rajchenbach-Teller-8/+8
float::to_str
2011-10-12[Fix] float.rs: str_to_float reimplementedDavid Rajchenbach-Teller-14/+177
2011-10-12[Optim] int.rs: reimplemented pow with fast exponentiationDavid Rajchenbach-Teller-10/+13
2011-10-11Revert "Merge pull request #1025 from elly/master"Lindsey Kuper-1/+1
This reverts commit e12e76e9ba0785d556a6ea3ca71e4a467e2aeb4d, reversing changes made to f480203fdd4d8b498453c1f7cc0ad4f59d87c596.
2011-10-11Revert "Revert "Add a test case for #898. Closes #898.""Lindsey Kuper-0/+11
This reverts commit e305ab38518352d934c081687a6cdccd5af4dfb6. Oops again. Reverting a mistaken revert.
2011-10-11Revert "Add a test case for #898. Closes #898."Lindsey Kuper-11/+0
This reverts commit f480203fdd4d8b498453c1f7cc0ad4f59d87c596. Oops. This patch requires people to bump their LLVM version.
2011-10-11Update LinkModules invocation to use new prototypeElly Jones-1/+1
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules. Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-10-11Add a test case for #898. Closes #898.Brian Anderson-0/+11
Seems to have been fixed.
2011-10-11Use the correct function type for external bare functionsBrian Anderson-1/+1
Issue #1022
2011-10-11Register snapshotsBrian Anderson-0/+5
2011-10-11Use a non-ambiguous character for encoding bare functionsBrian Anderson-1/+6
I was using 'R' and that was already used for records. Issue #1022
2011-10-11Add a test for assignment of bare functionsBrian Anderson-0/+7
Issue #1022
2011-10-11Add a test that bare functions are word-sizedBrian Anderson-0/+9
Issue #1022
2011-10-11Add a test that uses a hypothetical bare-fn spawn signatureBrian Anderson-0/+16
Issue #1022
2011-10-11Remove the environment argument from bare functionsBrian Anderson-7/+35
Issue #1022
2011-10-11Add a test for higher-order bare functionsBrian Anderson-0/+15
Issue #1022
2011-10-11Add a test for binding bare functionsBrian Anderson-0/+9
Issue #1022
2011-10-11Don't allow bind to produce bare functionsBrian Anderson-1/+21
Issue #1022
2011-10-11Introduce ast::proto_bareBrian Anderson-3/+13
Issue #1022
2011-10-11Add a temporary syntax for bare functionsBrian Anderson-8/+35
Bare functions will be represented as 'fn#' until they're implemented. Then we'll switch it over to just 'fn'. Issue #1022
2011-10-11[Move] Moved str_to_float, float_to_str from compiler to libDavid Rajchenbach-Teller-40/+51
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-38/+34
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-10Make vectors and strings immediates againMarijn Haverbeke-121/+100
There's no good reason to force them to be spilled anymore. Some pieces of trans become more elegant this way, and less stack allocs and load/stores are needed. Issue #1021
2011-10-10Make bcx_tcx-style accessors return by referenceMarijn Haverbeke-8/+8
2011-10-10Move type_is_immediate into ty.rsMarijn Haverbeke-16/+6
2011-10-10Don't spill immediates in order to drop themMarijn Haverbeke-21/+52
Issue #1012
2011-10-10Make free glue take a pointer to the heap part (box)Marijn Haverbeke-70/+67
This way, it can be used to drop values without first spilling them. Issue #1012
2011-10-09Revert "Revert "Stop using (DY)LD_LIBRARY_PATH on Unix""Brian Anderson-1/+21
This reverts commit 941d5e737cf459a8748a509850e9cfa4a573e78d.
2011-10-09Register snapshotsBrian Anderson-0/+5
2011-10-09Revert "Stop using (DY)LD_LIBRARY_PATH on Unix"Brian Anderson-21/+1
This reverts commit 4b58071f96821f43e5124d46b65f4e777992415f.
2011-10-09Fix bad float-type detection in transMarijn Haverbeke-6/+2
Closes #1017
2011-10-07Make windows package uninstallableBrian Anderson-0/+24
2011-10-07Make windows packaging work againBrian Anderson-10/+13
2011-10-07Fix up test for last commitMarijn Haverbeke-1/+1
2011-10-07Make 1-1 parse againMarijn Haverbeke-34/+82
Issue #954 This is not a very elegant fix -- we should probably do something with constant folding to handle negative-int alt patterns in the future.
2011-10-07Stop registering cleanups for types that don't need themMarijn Haverbeke-0/+3
2011-10-07Make it possible to have locals that don't live on the stackMarijn Haverbeke-149/+172
Local values that are not mutated, don't need to be cleaned up, and are immediate, don't need to be spilled. (All immediate args, and non-pointer immediate let locals.)
2011-10-07Add tests for programs that are invalid by arg-passing-styleMarijn Haverbeke-0/+9
Closes #1008
2011-10-07Forbid passing dynamically-sized types by valueMarijn Haverbeke-2/+11
Issue #1008
2011-10-07Actually pass parameters specified as by-val by valueMarijn Haverbeke-31/+49
Issue #1008
2011-10-07Add pass-by-ref annotation to the tests to make them typecheckMarijn Haverbeke-47/+49
Issue #1008