Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 KB | None | 0 0
  1. --- sandbox/old.log 2015-09-06 00:08:11.000000000 +1000
  2. +++ sandbox/new.log 2015-09-06 00:08:05.000000000 +1000
  3. @@ -1,133 +1,133 @@
  4. [[syntax trees at end of mixin]] // test.scala
  5. package <empty> {
  6. class C extends Object {
  7. - private def C_O$lzycompute(): C$C_O.type = {
  8. + @volatile <synthetic> private[this] var C_O$module: C$C_O.type = _;
  9. + <stable> private def C_O$lzycompute(): C$C_O.type = {
  10. {
  11. C.this.synchronized({
  12. if (C.this.C_O$module.eq(null))
  13. {
  14. C.this.C_O$module = new C$C_O.type(C.this);
  15. ()
  16. };
  17. scala.runtime.BoxedUnit.UNIT
  18. });
  19. - null
  20. + ()
  21. };
  22. C.this.C_O$module
  23. };
  24. - private def O$1$lzycompute(x$1: runtime.VolatileObjectRef): C$O$2.type = {
  25. + <stable> def C_O(): C$C_O.type = if (C.this.C_O$module.eq(null))
  26. + C.this.C_O$lzycompute()
  27. + else
  28. + C.this.C_O$module;
  29. + def test(): Unit = {
  30. + @volatile var O$module: runtime.VolatileObjectRef = scala.runtime.VolatileObjectRef.zero();
  31. + ()
  32. + };
  33. + final <stable> private[this] def O$lzycompute$1(O$module$1: runtime.VolatileObjectRef): C$O$2.type = {
  34. {
  35. C.this.synchronized({
  36. - if (x$1.elem.eq(null))
  37. + if (O$module$1.elem.$asInstanceOf[C$O$2.type]().eq(null))
  38. {
  39. - x$1.elem = new C$O$2.type(C.this);
  40. + O$module$1.elem = new C$O$2.type(C.this);
  41. ()
  42. };
  43. scala.runtime.BoxedUnit.UNIT
  44. });
  45. - null
  46. + ()
  47. };
  48. - x$1.elem.$asInstanceOf[C$O$2.type]()
  49. - };
  50. - @volatile <synthetic> private[this] var C_O$module: C$C_O.type = _;
  51. - <stable> def C_O(): C$C_O.type = if (C.this.C_O$module.eq(null))
  52. - C.this.C_O$lzycompute()
  53. - else
  54. - C.this.C_O$module;
  55. - def test(): Unit = {
  56. - @volatile var O$module: runtime.VolatileObjectRef = scala.runtime.VolatileObjectRef.zero();
  57. - ()
  58. + O$module$1.elem.$asInstanceOf[C$O$2.type]()
  59. };
  60. - final <stable> private[this] def O$1(O$module$1: runtime.VolatileObjectRef): C$O$2.type = if (O$module$1.elem.eq(null))
  61. - C.this.O$1$lzycompute(O$module$1)
  62. + final <stable> private[this] def O$1(O$module$1: runtime.VolatileObjectRef): C$O$2.type = if (O$module$1.elem.$asInstanceOf[C$O$2.type]().eq(null))
  63. + C.this.O$lzycompute$1(O$module$1)
  64. else
  65. O$module$1.elem.$asInstanceOf[C$O$2.type]();
  66. def <init>(): C = {
  67. C.super.<init>();
  68. ()
  69. }
  70. };
  71. abstract trait T extends Object {
  72. <stable> def T_O(): T$T_O.type;
  73. def test(): Unit
  74. };
  75. class D extends Object with T {
  76. + def test(): Unit = T$class.test(D.this);
  77. @volatile <synthetic> private[this] var T_O$module: T$T_O.type = _;
  78. - private def T_O$lzycompute(): T$T_O.type = {
  79. + <stable> private def T_O$lzycompute(): T$T_O.type = {
  80. {
  81. D.this.synchronized({
  82. if (D.this.T_O$module.eq(null))
  83. {
  84. D.this.T_O$module = new T$T_O.type(D.this);
  85. ()
  86. };
  87. scala.runtime.BoxedUnit.UNIT
  88. });
  89. - null
  90. + ()
  91. };
  92. D.this.T_O$module
  93. };
  94. <stable> def T_O(): T$T_O.type = if (D.this.T_O$module.eq(null))
  95. D.this.T_O$lzycompute()
  96. else
  97. D.this.T_O$module;
  98. - def test(): Unit = T$class.test(D.this);
  99. def <init>(): D = {
  100. D.super.<init>();
  101. T$class./*T$class*/$init$(D.this);
  102. ()
  103. }
  104. };
  105. abstract trait T$class extends {
  106. - private def test_O$1$lzycompute(x$1: T, x$2: runtime.VolatileObjectRef): T$test_O$2.type = {
  107. + def test($this: T): Unit = {
  108. + @volatile var test_O$module: runtime.VolatileObjectRef = scala.runtime.VolatileObjectRef.zero();
  109. + ()
  110. + };
  111. + final <stable> private[this] def test_O$lzycompute$1($this: T, test_O$module$1: runtime.VolatileObjectRef): T$test_O$2.type = {
  112. {
  113. - x$1.synchronized({
  114. - if (x$2.elem.eq(null))
  115. + $this.synchronized({
  116. + if (test_O$module$1.elem.$asInstanceOf[T$test_O$2.type]().eq(null))
  117. {
  118. - x$2.elem = new T$test_O$2.type(x$1);
  119. + test_O$module$1.elem = new T$test_O$2.type($this);
  120. ()
  121. };
  122. scala.runtime.BoxedUnit.UNIT
  123. });
  124. - null
  125. + ()
  126. };
  127. - x$2.elem.$asInstanceOf[T$test_O$2.type]()
  128. - };
  129. - def test($this: T): Unit = {
  130. - @volatile var test_O$module: runtime.VolatileObjectRef = scala.runtime.VolatileObjectRef.zero();
  131. - ()
  132. + test_O$module$1.elem.$asInstanceOf[T$test_O$2.type]()
  133. };
  134. - final <stable> private[this] def test_O$1($this: T, test_O$module$1: runtime.VolatileObjectRef): T$test_O$2.type = if (test_O$module$1.elem.eq(null))
  135. - T$class.this.test_O$1$lzycompute($this, test_O$module$1)
  136. + final <stable> private[this] def test_O$1($this: T, test_O$module$1: runtime.VolatileObjectRef): T$test_O$2.type = if (test_O$module$1.elem.$asInstanceOf[T$test_O$2.type]().eq(null))
  137. + T$class.test_O$lzycompute$1($this, test_O$module$1)
  138. else
  139. test_O$module$1.elem.$asInstanceOf[T$test_O$2.type]();
  140. def /*T$class*/$init$($this: T): Unit = {
  141. ()
  142. }
  143. };
  144. object C$C_O extends Object {
  145. def <init>($outer: C): C$C_O.type = {
  146. C$C_O.super.<init>();
  147. ()
  148. }
  149. };
  150. object C$O$2 extends Object {
  151. def <init>($outer: C): C$O$2.type = {
  152. C$O$2.super.<init>();
  153. ()
  154. }
  155. };
  156. object T$T_O extends Object {
  157. def <init>($outer: T): T$T_O.type = {
  158. T$T_O.super.<init>();
  159. ()
  160. }
  161. };
  162. object T$test_O$2 extends Object {
  163. def <init>($outer: T): T$test_O$2.type = {
  164. T$test_O$2.super.<init>();
  165. ()
  166. }
  167. }
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement