about summary refs log tree commit diff
path: root/src/comp/metadata/encoder.rs
AgeCommit message (Collapse)AuthorLines
2011-08-05rustc: Parse "inline". Also write it into metadata.Patrick Walton-0/+11
2011-08-05Revert "rustc: Introduce the concept of inline to the AST"Patrick Walton-2/+2
This reverts commit 9b9170f9fe2e4701255a5bd0630c203409d8e934.
2011-08-05rustc: Introduce the concept of inline to the ASTPatrick Walton-2/+2
2011-07-29Encode, decode, and thread through typechecking all the param kinds, not ↵Graydon Hoare-26/+34
just the counts.
2011-07-27Reformat for new syntaxMarijn Haverbeke-353/+343
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-39/+42
2011-07-25Remove some rustboot-ismsMarijn Haverbeke-8/+4
Closes #464
2011-07-21Move a bunch of trans into trans_common, including the context structures.Michael Sullivan-1/+1
Probably more should be moved or split off into other files. My algorithm was something along the lines of: move the contexts and their transitive dependencies along with some functions to work with them. I stopped when I was going to have to start pulling glue generation, which really should go into a trans_glue file.
2011-07-14rustc: Move metadata::encoder over to interior vectorsPatrick Walton-52/+56
2011-07-14rustc: Move much of metadata reading over to interior vectorsPatrick Walton-153/+153
2011-07-10Use more encapsulation for metadata::cstoreBrian Anderson-1/+1
2011-07-08Encode/decode a crate's externel dependencies. Issue #632Brian Anderson-0/+46
The encoding is very simple right now, just the crate name. Ultimately this won't be enough for our versioning needs, but it should fill our immediate need of being able to correlate encoded crate numbers to actual crates.
2011-07-08Don't export tyencode from the metadata moduleBrian Anderson-48/+64
This involves pulling the type_abbrev cache out of crate_ctxt
2011-07-07rustc: Remove all exterior vectors from the ASTPatrick Walton-1/+1
2011-07-07Rename encoder::ty_str to encoded_strBrian Anderson-2/+2
2011-07-07Don't expert def_to_str from metadata::encoderBrian Anderson-2/+1
2011-07-07Move tyencode::ty_str to metadata::encoderBrian Anderson-0/+11
2011-07-07Refactor a few things in the metadata moduleBrian Anderson-12/+1
Rename metadata::tags to metadata::common. Move some utility functions from metadata::encoder to metadata::common.
2011-07-07Rename hash_def_id to hash_node_idBrian Anderson-3/+3
2011-07-07Remove metadata::encoder's dependence on trans::node_id_typeBrian Anderson-9/+9
2011-07-07rustc: Change lots of AST nodes to use interior vectorsPatrick Walton-5/+6
2011-07-06rustc: Make meta items into interior vectorsPatrick Walton-5/+4
2011-07-05Change ast::meta_name_value to accept any literal, not just stringBrian Anderson-12/+17
This isn't useful for much of anything yet, since metadata::encoder doesn't know how to handle the non-string variants. Issue #611
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-1/+1
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-07-01Cleanup attribute code. Issue #487Brian Anderson-20/+10
2011-07-01Track def_ids of native types so that they can be distinguishedMarijn Haverbeke-1/+2
Closes #526
2011-06-30Move middle::attr to front::attrBrian Anderson-1/+1
2011-06-30Make calling resource destructors work cross-crateMarijn Haverbeke-1/+1
Tydescs are currently re-created for each compilation unit (and I guess for structural types, they have to be, though the duplication still bothers me). This means a destructor can not be inlined in the drop glue for a resource type, since other crates don't have access to the destructor body. Destructors are now compiled as separate functions with an external symbol that can be looked up in the crate (under the resource type's def_id), and called from the drop glue.
2011-06-29Re-enable tidy (it was broken) and fix various non-tidy things.Graydon Hoare-6/+8
2011-06-29Write metadata for sythesized name/vers items to the crate's link attrBrian Anderson-1/+66
If the crate doesn't specify it's name or version, the defaults need to be exported in the crate metadata
2011-06-29Fix resource encoding bugs.Graydon Hoare-2/+3
2011-06-28Cleanup attribute code. Issue #487Brian Anderson-1/+0
2011-06-28Remove the last traces of the distinction between export / local meta itemsBrian Anderson-21/+0
Issue #487
2011-06-28Rework how linkage attributes are determinedBrian Anderson-6/+8
The meta items within a crate's link attribute are used in linkage: #[link(name = "std", vers = "1.0", custom = "whatever")]; Name and vers are treated specially, and everything else is hashed together into the crate meta hash. Issue #487
2011-06-28Write metadata for more meta_item types. Issue #487Brian Anderson-7/+21
2011-06-28Write metadata for crate attributes. Issue #487Brian Anderson-17/+31
2011-06-28Add emacs variables to encoder.rsBrian Anderson-0/+10
2011-06-27Rename metadata::defs to metadata::tagsBrian Anderson-1/+1
2011-06-27Cleanup in metadata moduleBrian Anderson-0/+2
2011-06-27Extract llvm-independent code from cwriter to metadata::encoderBrian Anderson-0/+478