summary refs log tree commit diff
path: root/src/rustc/metadata/astencode.rs
AgeCommit message (Collapse)AuthorLines
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-6/+6
2012-03-26rustc: Begin eliminating ext's dependency on the sessionBrian Anderson-9/+6
2012-03-23Implement new inference algorithm.Niko Matsakis-0/+1
2012-03-23Handle self correctly when translating classesTim Chevalier-1/+1
This change uses the same code for handling the "self" reference for classes as is already used for impls/ifaces. This allows removing the extra maybe_self_id argument (which was just for classes) to trans_closure that I added before. I also rewrote the translation for class ctors so that it doesn't generate new AST nodes (instead translating directly). Also changed visit so that it visits class ctors correctly with visit_fn, and changed typestate to not do return-checking when visiting a class ctor.
2012-03-23Keep an explicit map of things that have to be spilledMarijn Haverbeke-1/+9
This prevents us from spilling locals more than once. Closes #2040
2012-03-23Implement built-in native modules as an alternative to intrinsicsMarijn Haverbeke-0/+6
Issue #1981
2012-03-15switch over to using new serialize/deserialize codeNiko Matsakis-20/+148
2012-03-15Remove tests from astencode.rsMarijn Haverbeke-116/+0
They mysteriously fail on Windows, and Niko assures me this code is about be replaced anyway.
2012-03-15Make sure enum and resource constructors are inlined properlyMarijn Haverbeke-0/+1
2012-03-15Make sure resource destructors are properly monomorphizedMarijn Haverbeke-0/+4
2012-03-15Rename dict to vtable throughout the compilerMarijn Haverbeke-32/+33
The difference went away.
2012-03-15Hugely simplify iface handlingMarijn Haverbeke-1/+7
With the assumption of monomorphization
2012-03-15Fix assumption that monomorphized method's impls are crate-localMarijn Haverbeke-1/+0
2012-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-1/+1
Instead of using the new_ prefix just name them after their type
2012-03-14adjust auto_serialize to generate fns named serialize_T()Niko Matsakis-6/+6
We used to generate a module T with a serialize() and deserialize() fn, but this was suboptimal for a number of reasons: - it required moving serialization into core so that uint etc worked - it was harder to override the serialization behavior locally (this is now trivial)
2012-03-13implement deserialization, rename mk_mem_buffer() to mem_buffer()Niko Matsakis-1/+1
2012-03-13first (functional) version of the auto_serialize syntax extNiko Matsakis-14/+15
2012-03-13Overhaul constructor naming in libsBrian Anderson-6/+6
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-1/+0
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
2012-03-09rustc: Add region def ids to the ASTPatrick Walton-1/+2
2012-03-09Revert "rustc: Create def IDs for region parameters"Patrick Walton-2/+1
This reverts commit 0d4cb759494f9589ba57c4f2c41f5a5737ab74e0.
2012-03-09rustc: Create def IDs for region parametersPatrick Walton-1/+2
2012-03-08Properly serialize is_last_use valuesMarijn Haverbeke-3/+21
They were all normalized to the same thing by the serializer.
2012-03-08Explicitly store self_ids use for self locals in methodsMarijn Haverbeke-1/+4
This makes it possible to move them between crates without confusion, and to instantiate them at a point where the monomorphizing substitutions are known. Issue #1944
2012-03-08Drop collect_items pass, create decls on demandMarijn Haverbeke-1/+1
This solves a problem with inlined functions that have inner functions.
2012-03-07Fix #1941: inlining of items that themselves contain nested itemsNiko Matsakis-1/+62
The fix is to drop nested items from the encoded AST. Nested items may themselves be inlined, but that is an independent question.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-3/+3
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-3/+3
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-3/+3
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-05rustc: Lower case error messagesBrian Anderson-1/+1
2012-03-02Move src/comp to src/rustcGraydon Hoare-0/+925