View gist:815c16eb7c2538ff2ba9d7508670bbc9
$ cat sandbox/test.scala; scalac -Yshow-trees -Xprint:typer sandbox/test.scala
trait T {
private[this] var foo = 42;
}
class C {
private[this] var foo = 42;
}
[[syntax trees at end of typer]]// Scala source: test.scala
View profile.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View getOrElse-baseline.json
[
{
"jmhVersion" : "1.20",
"benchmark" : "scala.collection.immutable.HashMapBenchmark.getOrElse",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/jz/.jabba/jdk/1.8.172/Contents/Home/jre/bin/java",
"jvmArgs" : [
],
View getOrElse-pr.json
[
{
"jmhVersion" : "1.20",
"benchmark" : "scala.collection.immutable.HashMapBenchmark.getOrElse",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/jz/.jabba/jdk/1.8.172/Contents/Home/jre/bin/java",
"jvmArgs" : [
],
View jstack.log
"pool-10-thread-12" #99 prio=5 os_prio=0 tid=0x00007f58b97a2000 nid=0xe00 runnable [0x00007f5854bf8000]
java.lang.Thread.State: RUNNABLE
at java.util.AbstractCollection.addAll(AbstractCollection.java:343)
at scala.tools.asm.tree.analysis.SourceInterpreter.merge(SourceInterpreter.java:206)
at scala.tools.asm.tree.analysis.SourceInterpreter.merge(SourceInterpreter.java:47)
at scala.tools.asm.tree.analysis.Frame.merge(Frame.java:665)
at scala.tools.asm.tree.analysis.Analyzer.merge(Analyzer.java:529)
at scala.tools.asm.tree.analysis.Analyzer.analyze(Analyzer.java:279)
at scala.tools.nsc.backend.jvm.analysis.BackendUtils$AsmAnalyzer.<init>(BackendUtils.scala:87)
at scala.tools.nsc.backend.jvm.analysis.BackendUtils$ProdConsAnalyzer.<init>(BackendUtils.scala:115)
View 2.12.6-result.json
[
{
"jmhVersion" : "1.20",
"benchmark" : "scala.collection.mutable.HashMapBenchmark.get",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/jz/.jabba/jdk/1.8.172/Contents/Home/jre/bin/java",
"jvmArgs" : [
],
View 2.12.6.json
[
{
"jmhVersion" : "1.20",
"benchmark" : "scala.collection.mutable.HashMapBenchmark.getOrElseUpdate",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/jz/.jabba/jdk/1.8.172/Contents/Home/jre/bin/java",
"jvmArgs" : [
],
View 2.13.x.json
[
{
"jmhVersion" : "1.20",
"benchmark" : "scala.collection.mutable.HashMapBenchmark.getOrElseUpdate",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/jz/.jabba/jdk/1.8.172/Contents/Home/jre/bin/java",
"jvmArgs" : [
],
View structural-types.log
public class $line5.$read$$iw$$iw$Test {
public static java.lang.reflect.Method reflMethod$Method1(java.lang.Class);
Code:
0: invokedynamic #34, 0 // InvokeDynamic #0:apply:()Lscala/runtime/StructuralCallSite;
5: astore_1
6: aload_1
7: aload_0
8: invokevirtual #37 // Method scala/runtime/StructuralCallSite.find:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
11: astore_2
12: aload_2
View gist:47efe13f6aedf84daa5696a562711724
public class $line5.$read$$iw$$iw$Test {
public static java.lang.reflect.Method reflMethod$Method1(java.lang.Class);
Code:
0: invokedynamic #34, 0 // InvokeDynamic #0:apply:()Lscala/runtime/StructuralCallSite;
5: astore_1
6: aload_1
7: aload_0
8: invokevirtual #37 // Method scala/runtime/StructuralCallSite.find:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
11: astore_2
12: aload_2