about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2011-08-27Convert the rest of rustc::middle to istrs. Issue #855Brian Anderson-123/+130
2011-08-27Convert rustc::middle::trans to istrs. Issue #855Brian Anderson-228/+234
2011-08-27Convert rest of the AST to istrs. Issue #855Brian Anderson-48/+66
2011-08-27Convert local_ctxt to istrs. Issue #855Brian Anderson-27/+28
2011-08-27Convert crate_ctxt to istrs. Issue #855Brian Anderson-12/+12
2011-08-27Convert middle::trans_common to istrs. Issue #855Brian Anderson-44/+46
2011-08-27Convert the rest of rustc::lib::llvm to istrs. Issue #855Brian Anderson-49/+50
2011-08-27Convert rustc::lib::llvm to istr::sbufs. Issue #855Brian Anderson-236/+447
2011-08-27Support istrs in #fmt. Issue #855Brian Anderson-0/+2
The format string may be an istr and istr args may be used with %S
2011-08-27Convert the rest of rustc::back to istrs. Issue #855Brian Anderson-59/+71
2011-08-27Convert back::link to istrs. Issue #855Brian Anderson-115/+162
2011-08-27Remove ast::identistr. Issue #855Brian Anderson-12/+10
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-316/+403
2011-08-27Convert std::map::new_str_hash to istrs. Issue #855Brian Anderson-129/+164
2011-08-27Convert std::os to istrs. Issue #855Brian Anderson-7/+9
2011-08-27Convert std::generic_os to istrs. Issue #855Brian Anderson-2/+5
2011-08-27Convert portions of rustc to istrs. Recover a lot of performance.Brian Anderson-60/+66
Issue #855
2011-08-27Convert std::io to istrs. Issue #855Brian Anderson-75/+96
2011-08-27Convert std::run to istrs. Issue #855Brian Anderson-13/+18
2011-08-27Convert std::getopts to istrs. Issue #855Brian Anderson-55/+61
2011-08-27Convert std::fs to istrs. Issue #855Brian Anderson-33/+51
2011-08-27Convert std::sha1 to istrs. Issue #855Brian Anderson-12/+17
2011-08-27Convert std::int to istrs. Issue #855Brian Anderson-34/+70
2011-08-27Convert std::uint to istrs. Issue #855Brian Anderson-32/+48
2011-08-27Don't output bogus spans when reporting a message without one.Brian Anderson-3/+3
Emacs gets confused by <input>:0:0:0:0:
2011-08-27Output error spans that don't confuse emacs compilation mode. Closes #845Brian Anderson-2/+2
2011-08-26Polymorphic MapReduce!Eric Holk-0/+1
2011-08-26Deleting trailing whitespaceEric Holk-1/+1
2011-08-26rt: Allow closures to be loggedPatrick Walton-2/+6
2011-08-26Bugfix. `--pretty typed` requires expansion. Closes #691.Paul Stansifer-21/+14
2011-08-26Fix invalid reads of cstrs in transBrian Anderson-5/+6
2011-08-26Revert "Use cstrcache in C_str, C_cstr, C_shape."Brian Anderson-14/+7
This reverts commit d5173b1f2cc174d53272be0d14a8290c05b8670a.
2011-08-26Revert "Add rustc::middle::cstrcache for getting c string bufs safely"Brian Anderson-30/+0
This reverts commit 4e136d1fd9bd5536d441c062d41e7b71b375a942.
2011-08-26Use cstrcache in C_str, C_cstr, C_shape.Brian Anderson-7/+14
This fixes up the current leaks.
2011-08-26Add rustc::middle::cstrcache for getting c string bufs safelyBrian Anderson-0/+30
We continue to leak string buffers in trans so this creates a way to get c string buffers from strings while guaranteeing that they are not freed before use. Hopefully this can be made efficient in the istr regime.
2011-08-26Revert "Revert "Use typestate constraints for trans_be""Tim Chevalier-6/+13
This reverts commit b0db13956f4f106c4bf5a9210c7df439b34506a4. (Should work now that we have a new snapshot)
2011-08-26Pass stuff to take_ty, free_ty, and drop_ty by address, even when immediateMarijn Haverbeke-39/+29
The glue-calling will spill the values again anyway. This should prevent a lot of load/spill junk in the output. It is also necessary to be able to have unique vecs be immediate values (take must know the actual address to be able to duplicate).
2011-08-26Revert "Use typestate constraints for trans_be"Tim Chevalier-13/+6
This reverts commit 1b60bba141c54f374d3378aa229c756d4a8f7f3d. (Need a snapshot first)
2011-08-26Use typestate constraints for trans_beTim Chevalier-6/+13
trans_be now has a precondition that its expression argument is a call expr. Obviously this code may be going away soon, but I wanted to exercise typestate somehow and this was an easy one :-)
2011-08-26Let typestate constraints mention pattern-bound varsTim Chevalier-5/+10
2011-08-25Remove remaining use of 'pred' and make 'pred' a non-reserved word. Huzzah\!Tim Chevalier-6/+0
2011-08-25Remove typestate workaround that's no longer necessaryTim Chevalier-4/+1
2011-08-25Support unchecked blocksTim Chevalier-19/+55
This patch supports the syntax unchecked { ... } to disable purity checking within a block. Presumably it will only be used within a declared "pure fn". However, there is no checking that it doesn't occur elsewhere, and it would be harmless for it to do so. I went with Lindsey's suggestion for the syntax, but it's subject to change. This allows you to write code that uses predicates that call arbitrary Rust functions, but you must declare your intentions by wrapping it in an unchecked { ... } block. The test case run-pass/unchecked-predicates.rs demonstrates how to do that.
2011-08-25Change "pred" to "pure fn" within the compiler.Tim Chevalier-2/+2
2011-08-25Allow pure fns to have any return typeTim Chevalier-13/+13
2011-08-25rt: Remember the number of captured type descriptors for objects in the type ↵Patrick Walton-1/+4
descriptor crate cache
2011-08-25Move ast::pat_id_map to ast::utilBrian Anderson-5/+5
2011-08-25rustc: Add an extra flag to object tydescs so that shapes know how to find ↵Patrick Walton-64/+91
the captured subtydescs
2011-08-24hmm, this should have been in the last commit. Oops.Tim Chevalier-0/+1
2011-08-24Change "pred" to "pure fn" (but still accept "pred")Tim Chevalier-7/+11
This is part 1 of changing the "pred" keyword to "pure fn". Right now, the compiler accepts both "pred" and "pure fn".