summaryrefslogtreecommitdiff
path: root/test/junit/scala/tools/nsc/backend/jvm/opt/EmptyLabelsAndLineNumbersTest.scala
Commit message (Collapse)AuthorAgeFilesLines
* Better abstraction for bytecode tests. Also organize some imports.Lukas Rytz2016-05-201-5/+5
|
* Rename nsc.backend.jvm.CodeGenTools to testing.BytecodeTestingLukas Rytz2016-05-201-1/+1
|
* Clean up the way compiler settings are accessed in the backend.Lukas Rytz2015-04-011-3/+3
| | | | | | | | | | | | Many backend components don't have access to the compiler instance holding the settings. Before this change, individual settings required in these parts of the backend were made available as members of trait BTypes, implemented in the subclass BTypesFromSymbols (which has access to global). This change exposes a single value of type ScalaSettings in the super trait BTypes, which gives access to all compiler settings.
* GenBCode: Command-line flags for enabling cleanup optimizationsLukas Rytz2014-11-041-5/+3
| | | | | | | | | | Add command-line flags `Yopt:...` for simplifying jumps, eliminating stale line number and label nodes. `LocalOpt.methodOptimizations` applies all enabled intra-method optimizations in the right order. Some cleanups for unreachable code elimination and its tests.
* GenBCode: Eliminate redundant labels and line number nodesLukas Rytz2014-11-041-0/+101
Cleanup optimizations - remove line number nodes that describe no executable instructions - squash sequences of label nodes, remove unreferenced labels Command-line flags that allow enabling these transformations are added in a later comimt.