about summary refs log tree commit diff
path: root/src/libsyntax_pos/span_encoding.rs
AgeCommit message (Collapse)AuthorLines
2019-12-30Rename directories for some crates from `syntax_x` to `rustc_x`Vadim Petrochenkov-140/+0
`syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros`
2019-12-22Format the worldMark Rousskov-2/+2
2019-04-05Increase `Span` from 4 bytes to 8 bytes.Nicholas Nethercote-101/+85
This increases the size of some important types, such as `ast::Expr` and `mir::Statement`. However, it drastically reduces how much the interner is used, and the fields are more natural sizes that don't require bit operations to extract. As a result, instruction counts drop across a range of workloads, by as much as 12% for incremental "check" builds of `script-servo`. Peak memory usage goes up a little for some cases, but down by more for some other cases -- as much as 18% for non-incremental builds of `packed-simd`. The commit also: - removes the `repr(packed)`, because it has negligible effect, but can cause undefined behaviour; - replaces explicit impls of common traits (`Copy`, `PartialEq`, etc.) with derived ones.
2019-04-03Tweak `Span` encoding.Nicholas Nethercote-3/+3
Failing to fit `base` is more common than failing to fit `len`.
2019-02-04libsyntax_pos => 2018Taiki Endo-3/+3
2018-12-25Remove licensesMark Rousskov-10/+0
2018-07-08libsyntax_pos: Tweak some visibilitiesVadim Petrochenkov-2/+2
2018-05-09Inline `Span` methods.Nicholas Nethercote-0/+3
Because they are simple and hot. This change speeds up some incremental runs of a few rustc-perf benchmarks, the best by 3%.
2018-03-14Remove syntax and syntax_pos thread localsJohn Kåre Alsaker-7/+4
2018-03-08Don't derive traits on packed structsOliver Schneider-1/+22
2017-11-05Fix comment formattingNadav Zingerman-2/+2
2017-11-04Add comment explaining the ctxt field in SpanNadav Zingerman-1/+3
2017-09-23Compress "small" spans to 32 bits and intern "large" spansVadim Petrochenkov-0/+143