@@ -384,7 +384,7 @@ private[optimizer] abstract class OptimizerCore(
384
384
* `Return`s we produce in order to decide whether we can remove
385
385
* the `Labeled`.
386
386
*/
387
- info.returnedTreeTypes.value ::= RefinedType . NoRefinedType
387
+ info.returnedTreeTypes.value ::= RefinedType ( VoidType )
388
388
Return (newExpr, newLabel)
389
389
}
390
390
} else if (! info.acceptRecords) {
@@ -5725,8 +5725,6 @@ private[optimizer] object OptimizerCore {
5725
5725
private final class TooManyRollbacksException
5726
5726
extends scala.util.control.ControlThrowable
5727
5727
5728
- private val AnonFunctionClassPrefix = " sjsr_AnonFunction"
5729
-
5730
5728
private type CancelFun = () => Nothing
5731
5729
private type PreTransCont = PreTransform => TailRec [Tree ]
5732
5730
@@ -5736,12 +5734,6 @@ private[optimizer] object OptimizerCore {
5736
5734
def isNullable : Boolean = base.isNullable
5737
5735
5738
5736
def isNothingType : Boolean = base == NothingType
5739
-
5740
- def toNonNullable : RefinedType = {
5741
- if (! isNullable) this
5742
- else if (base == NullType ) RefinedType .Nothing
5743
- else RefinedType (base.toNonNullable, isExact, allocationSite)
5744
- }
5745
5737
}
5746
5738
5747
5739
private object RefinedType {
@@ -5766,9 +5758,6 @@ private[optimizer] object OptimizerCore {
5766
5758
}
5767
5759
RefinedType (tpe, isExact)
5768
5760
}
5769
-
5770
- val NoRefinedType = RefinedType (VoidType )
5771
- val Nothing = RefinedType (NothingType )
5772
5761
}
5773
5762
5774
5763
/**
@@ -6018,12 +6007,6 @@ private[optimizer] object OptimizerCore {
6018
6007
copy(implsBeingInlined = implsBeingInlined + impl)
6019
6008
}
6020
6009
6021
- def inlining (impls : Set [Scope .InliningID ]): Scope = {
6022
- val intersection = implsBeingInlined.intersect(impls)
6023
- assert(intersection.isEmpty, s " Circular inlining of $intersection" )
6024
- copy(implsBeingInlined = implsBeingInlined ++ impls)
6025
- }
6026
-
6027
6010
def withImportReplacement (importReplacement : ImportReplacement ): Scope = {
6028
6011
assert(this .importReplacement.isEmpty, " Alreadying replacing " +
6029
6012
s " $this.importReplacement while trying to replace $importReplacement" )
@@ -6418,10 +6401,6 @@ private[optimizer] object OptimizerCore {
6418
6401
if (y >= 0 ) x- y <= x
6419
6402
else x- y > x
6420
6403
6421
- /** Tests whether `-x` is valid without falling out of range. */
6422
- private def canNegateLong (x : Long ): Boolean =
6423
- x != Long .MinValue
6424
-
6425
6404
private final class Intrinsics (intrinsicsMap : Map [(ClassName , MethodName ), Int ]) {
6426
6405
def apply (flags : ApplyFlags , target : AbstractMethodID ): Int = {
6427
6406
if (flags.isPrivate || flags.isConstructor) {
0 commit comments