aboutsummaryrefslogtreecommitdiff
path: root/bench/test/dotty/tools/benchmarks/Benchmarks.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-01-12 16:18:20 +0700
committerGitHub <noreply@github.com>2017-01-12 16:18:20 +0700
commit36237cbc7449079574b4171a85bc7dccf19e371d (patch)
tree45bf3fd30f0ad343268f2dadba365cbb67f3c227 /bench/test/dotty/tools/benchmarks/Benchmarks.scala
parentba7e12999dc645dbcba04cf365dfd4d621ee4662 (diff)
parent783a80d0d8f726f7169022457152d4301779244f (diff)
downloaddotty-36237cbc7449079574b4171a85bc7dccf19e371d.tar.gz
dotty-36237cbc7449079574b4171a85bc7dccf19e371d.tar.bz2
dotty-36237cbc7449079574b4171a85bc7dccf19e371d.zip
Merge pull request #1880 from dotty-staging/improve-whitelist-infrastructure
Improve whitelist infrastructure.
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 dc2d65528..04e7e25d7 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._
@@ -49,13 +50,7 @@ object BenchTests extends OnlineRegressionReport {
val dottyDir = "../compiler/src/dotty/"
val testDir = "../bench/tests/"
- 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)