about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2011-07-20Box the vec of freevars we store in the freevars cache.Michael Sullivan-6/+6
2011-07-20Parse nil literals (including in patterns)Tim Chevalier-0/+5
Closes #622.
2011-07-20Refactoring and cleaning up.Lindsey Kuper-16/+11
2011-07-20Fix typo.Rafael Ávila de Espíndola-1/+1
2011-07-20give rust_metadata internal linkage but mark it as used. This allowsRafael Ávila de Espíndola-0/+11
multiple static crates to be used.
2011-07-19Add missing case in tyencode for ty_constrTim Chevalier-0/+66
Fixes the Windoze breakage, I hope.
2011-07-19Have fn_to_str use proto_to_str.Michael Sullivan-5/+2
2011-07-19Typechecking self-calls in anon objs. Closes #540.Lindsey Kuper-30/+50
2011-07-19Clean up formatting.Lindsey Kuper-13/+10
2011-07-19Beginnings of support for constrained typesTim Chevalier-360/+580
Programs with constrained types now parse and typecheck, but typestate doesn't check them specially, so the one relevant test case so far is XFAILed. Also rewrote all of the constraint-related data structures in the process (again), for some reason. I got rid of a superfluous data structure in the context that was mapping front-end constraints to resolved constraints, instead handling constraints in the same way in which everything else gets resolved.
2011-07-19Simple refactoring in the pretty printer.Michael Sullivan-7/+10
Introduce a proto_to_str function to find the string representation of a given proto instead of casing on the proto in multiple places.
2011-07-19Style and indentation cleanups.Lindsey Kuper-19/+19
2011-07-19Some progress on issue #540.Lindsey Kuper-44/+76
2011-07-19Comments and cleanup.Lindsey Kuper-9/+7
2011-07-19Wrapping long strings.Lindsey Kuper-7/+7
2011-07-19Remove cwriter.rsBrian Anderson-28/+0
This file isn't actually in the crate
2011-07-19Add a pass that finds all of the free variables.Michael Sullivan-18/+69
2011-07-19Move collect_upvars into its own file.Michael Sullivan-72/+96
2011-07-19rustc: Report how much time was spent to translate each function when ↵Patrick Walton-14/+60
--stats is on
2011-07-19Fix trans_alt to handle unreachable branches without blowing upMarijn Haverbeke-12/+25
2011-07-18rustc: Translate locals in DPS stylePatrick Walton-1/+22
2011-07-18rustc: Remove obsolete TODOPatrick Walton-1/+0
2011-07-18rustc: Skip null when translating string concatenationPatrick Walton-1/+6
2011-07-18rustc: First stab at implementing interior vector concat in the DPS enginePatrick Walton-27/+267
2011-07-18Don't use 'obj_info' as an identifier for things not of type obj_info.Lindsey Kuper-5/+5
2011-07-18Sane error message for self-call in non-obj context. Closes #707.Lindsey Kuper-2/+7
2011-07-18Support x86 stdcall conventionBrian Anderson-6/+40
This allows rust to call the Win32 API
2011-07-18rustc: Stub binary operator translationPatrick Walton-0/+47
2011-07-17rustc: Simplify the destination format in the DPS backend; optimize aliases ↵Patrick Walton-90/+103
to interior strings to require no allocation at all
2011-07-17rustc: Use memmove instructions more aggressively in DPS mode. LLVM converts ↵Patrick Walton-13/+74
these to optimized block transfer instructions, significantly reducing code size.
2011-07-16Make clear the differentiation between char pos and byte pos in filemaps. ↵Josh Matthews-34/+64
Fix up error printing for files with multi-byte characters.
2011-07-16Fix pre-existing problem with filemap line positions always starting at 0. ↵Josh Matthews-4/+12
Fix error line output to only retrieve up to the nearest newline.
2011-07-16Use the actual start position of the file in the codemap rather than the ↵Josh Matthews-4/+2
position of the first newline.
2011-07-16Reenable error line printing.Josh Matthews-2/+1
2011-07-16Fix error line display slicing.Josh Matthews-5/+7
2011-07-16rustc: Implement immediates in the DPS engine; it should now always be at ↵Patrick Walton-16/+49
least as efficient as the original engine (and typically much more).
2011-07-15rustc: Implement interior string logging in DPSPatrick Walton-3/+10
2011-07-15rustc: Implement logging in DPSPatrick Walton-9/+109
2011-07-15rustc: Translate literals in DPS style; no constification of strings yet.Patrick Walton-7/+174
2011-07-15rustc: Write names of local variables into the LLVM IR when debug mode is onPatrick Walton-0/+3
2011-07-15Merge the stage1,2,3.mk files into a common definition in stageN.mk, more ↵Graydon Hoare-2/+2
rearrangement of host/target libs.
2011-07-15gather_locals shouldn't descend down into fns and items.Michael Sullivan-1/+10
2011-07-15Convert gather_locals to use visit.Michael Sullivan-18/+21
2011-07-15rustc: Introduce a stub destination-passing-style translation engine, ↵Patrick Walton-15/+186
accessible via the --dps switch for now
2011-07-15rustc: Remove a bunch of exterior vectorsPatrick Walton-331/+302
2011-07-15Getting rid of unnecessary casts for objects.Lindsey Kuper-3/+0
Now that all objects are of rust_object_type in the wake of the LLVM type system rewrite, we don't need this cast anymore.
2011-07-14refactor: Move the task and communication-related translation functions to a ↵Eric Holk-284/+311
new module.
2011-07-14Make collect_upvars know about function args.Michael Sullivan-1/+6
Closes #697.
2011-07-14Generalize collect_upvars to work over any type of ast node.Michael Sullivan-7/+12
2011-07-14refactor: Move the LLVM type and constant constructors into a new module.Eric Holk-446/+511