about summary refs log tree commit diff
path: root/src/comp/middle
AgeCommit message (Collapse)AuthorLines
2011-04-01rustc: Remove useless call to tag_variant_with_id()Patrick Walton-1/+0
2011-04-01Cleanup typos and newlinesBrian Anderson-1/+1
2011-03-31Initialize the alloca used to retrieve boxed block results to null.Brian Anderson-11/+19
This allows blocks to be used in conditional constructs where the block may not ever execute: the drop glue will notice that it was never used and ignore it. Also, beef up the comments.
2011-03-31Only use allocas to hold expression results for boxed typesBrian Anderson-18/+3
2011-03-31Add more comments to trans_blockBrian Anderson-1/+2
2011-03-31Modify trans.rs to allow blocks to result in boxed valuesBrian Anderson-0/+59
2011-03-31rustc: Add a type annotation to tag itemsPatrick Walton-31/+29
2011-03-31rustc: Make tag_ty_params() and substitute_ty_params() take def ids instead ↵Patrick Walton-10/+6
of ty_params, and to check in external crates
2011-03-31rustc: Write out a path index as wellPatrick Walton-59/+117
2011-03-31More stuff to go with the new expr_call_self AST nodeLindsey Kuper-0/+68
2011-03-31More machinery for adding an expr_call_self AST node.Lindsey Kuper-1/+18
2011-03-31rustc: Index only the local part of definition IDsPatrick Walton-16/+21
2011-03-31rustc: Write out an index of definition info in crate metadataPatrick Walton-30/+100
2011-03-31rustc: Use the scaled index, not the raw index, if a vector has generic ↵Patrick Walton-2/+12
size. lib-vec.rs works now.
2011-03-31Rename incr_all_refcnts to take_ty, to match drop_tyBrian Anderson-4/+4
2011-03-31Restore scope block contexts to the translation of expr_block.Brian Anderson-2/+20
I removed this previously but that was wrong because it caused block expressions to not create a new scope.
2011-03-31Improve line comment positioningMarijn Haverbeke-40/+42
This involved making ast.variant spanned.
2011-03-31Add effect field to ast.ty_fn.Marijn Haverbeke-12/+13
Still not used, except by the pretty-printer.
2011-03-30rustc: Use the type cache to construct external item referencesPatrick Walton-19/+38
2011-03-30rustc: Thread an item-to-type mapping throughout the typechecking and ↵Patrick Walton-344/+353
translation phases
2011-03-30Ensure task stacks start out with a 16-byte aligned entry frame. Should make ↵Graydon Hoare-1/+2
OSX behave a bit better.
2011-03-29rustc: Add all items to the item table during translation. lib-vec now ↵Patrick Walton-1/+16
compiles, but asserts and then segfaults.
2011-03-29rustc: Parse parameter IDs in external crate metadata. Un-XFAIL lib-bitv.rs.Patrick Walton-1/+1
2011-03-29rustc: Partially resolve external module importsPatrick Walton-4/+88
2011-03-29Beginnings of support for magical self prefix; nothing profound happening yet.Lindsey Kuper-0/+8
2011-03-29rustc: Resolve external modules and native modules to definition IDs as wellPatrick Walton-6/+14
2011-03-29Rename trans_native to trans_native_call, for clarity.Graydon Hoare-10/+10
2011-03-29Teach trans to emit undefined references to 'use'd symbols. Can compile and ↵Graydon Hoare-0/+21
run a simple 'use std;' example now.
2011-03-28Add partial support for if expressions resulting in generic typesBrian Anderson-4/+7
2011-03-28Handle structural types as the result of if expressionsBrian Anderson-0/+3
2011-03-28Teach rustc to use the result of if expressionsBrian Anderson-4/+13
2011-03-28Add expr_spawn, spawn parsing, folding, typechecking, ty_taskBrian Anderson-16/+77
2011-03-28Move all allocas to dedicated basic block at top of function, to keep frames ↵Graydon Hoare-56/+141
finite. Un-comment next size in nbody.rs.
2011-03-28rustc: Populate the item types table with types of items from external ↵Patrick Walton-10/+42
crates; remove the redundant typeck.ty_and_params type on the way
2011-03-28rustc: Remove commented out "encode_tag_variant_info" call that sneaked inPatrick Walton-1/+1
2011-03-28rustc: Don't include a trailing null when writing out metadata; it corrupts ↵Patrick Walton-4/+5
the EBML
2011-03-28Fix get_tydesc to alloca enough room for root; remove hack that was ↵Graydon Hoare-8/+3
attempting to paper over it. Fix from espindola.
2011-03-28rustc: Add support for calling LLVM intrinsics as native functionsPatrick Walton-8/+35
2011-03-27Add support for break and cont to rustcMarijn Haverbeke-9/+104
Testing proper cleanup is hampered by https://github.com/graydon/rust/issues/293
2011-03-26Twiddle visibility, start exposing only type-mangled names (64 bit truncated ↵Graydon Hoare-17/+21
sha1 prefixes).
2011-03-26Start refactoring name-mangling in trans.Graydon Hoare-43/+90
2011-03-26Teach creader and metadata writer how to do ty.ty_type.Graydon Hoare-1/+11
2011-03-25Add get_extern_const, factor get_extern into get_extern_fn and ↵Graydon Hoare-6/+23
get_simple_extern_fn.
2011-03-25Trans nomenclature tidy-up: upcall vs. native vs. extern.Graydon Hoare-35/+54
2011-03-25Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare-5/+5
2011-03-25Sketch of wiring typeck up to creader.Graydon Hoare-30/+55
2011-03-25Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare-5/+5
build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
2011-03-25Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare-5/+5
off src root.
2011-03-25rustc: Store cached crate metadata in the sessionPatrick Walton-14/+11
2011-03-25Implement local declarations with receive. Un-XFAIL decl-with-recv.rs.Brian Anderson-13/+37