aboutsummaryrefslogtreecommitdiff
path: root/bench/test/dotty/tools/benchmarks/Benchmarks.scala
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2017-01-05 11:08:26 +0100
committerNicolas Stucki <nicolas.stucki@gmail.com>2017-01-05 11:08:26 +0100
commit66a340937b0adead0aa7a96e21f68d43a03cba00 (patch)
treec29d139a36a2ecb5db669b613100b63a6dfb5a5f /bench/test/dotty/tools/benchmarks/Benchmarks.scala
parent3922cce7afc295f7816397ebf2d2f59446a89041 (diff)
downloaddotty-66a340937b0adead0aa7a96e21f68d43a03cba00.tar.gz
dotty-66a340937b0adead0aa7a96e21f68d43a03cba00.tar.bz2
dotty-66a340937b0adead0aa7a96e21f68d43a03cba00.zip
Add stdlib whitelist loader.
Diffstat (limited to 'bench/test/dotty/tools/benchmarks/Benchmarks.scala')
-rw-r--r--bench/test/dotty/tools/benchmarks/Benchmarks.scala9
1 files changed, 2 insertions, 7 deletions
diff --git a/bench/test/dotty/tools/benchmarks/Benchmarks.scala b/bench/test/dotty/tools/benchmarks/Benchmarks.scala
index fe5517ad9..242d60788 100644
--- a/bench/test/dotty/tools/benchmarks/Benchmarks.scala
+++ b/bench/test/dotty/tools/benchmarks/Benchmarks.scala
@@ -1,5 +1,6 @@
package dotty.tools.benchmarks
+import dotty.tools.StdLibSources
import org.scalameter.Key.reports._
import org.scalameter.PerformanceTest.OnlineRegressionReport
import org.scalameter.api._
@@ -47,13 +48,7 @@ object BenchTests extends OnlineRegressionReport {
val dottyDir = "../compiler/src/dotty/"
- val stdlibFiles = Source.fromFile("../compiler/test/dotc/scala-collections.whitelist", "UTF8").getLines()
- .map(_.trim) // allow identation
- .filter(!_.startsWith("#")) // allow comment lines prefixed by #
- .map(_.takeWhile(_ != '#').trim) // allow comments in the end of line
- .filter(_.nonEmpty)
- .map("." + _)
- .toList
+ val stdlibFiles = StdLibSources.whitelisted
def stdLib = compiler.compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode)