@@ -3598,11 +3598,15 @@ private[optimizer] abstract class OptimizerCore(
3598
3598
withBinding(rtLongBinding) { (scope1, cont1) =>
3599
3599
implicit val scope = scope1
3600
3600
val tRef = VarRef (LocalIdent (tName))(rtLongClassType)
3601
- val newTree = New (LongImpl .RuntimeLongClass ,
3602
- MethodIdent (LongImpl .initFromParts),
3603
- List (Apply (ApplyFlags .empty, tRef, MethodIdent (LongImpl .lo), Nil )(IntType ),
3604
- Apply (ApplyFlags .empty, tRef, MethodIdent (LongImpl .hi), Nil )(IntType )))
3605
- pretransformExpr(newTree)(cont1)
3601
+
3602
+ val lo = Apply (ApplyFlags .empty, tRef, MethodIdent (LongImpl .lo), Nil )(IntType )
3603
+ val hi = Apply (ApplyFlags .empty, tRef, MethodIdent (LongImpl .hi), Nil )(IntType )
3604
+
3605
+ pretransformExprs(lo, hi) { (tlo, thi) =>
3606
+ inlineClassConstructor(AllocationSite .Anonymous , LongImpl .RuntimeLongClass ,
3607
+ inlinedRTLongStructure, MethodIdent (LongImpl .initFromParts), List (tlo, thi),
3608
+ () => throw new AssertionError (s " rolled-back RuntimeLong inlining at $pos" ))(cont1)
3609
+ }
3606
3610
} (cont)
3607
3611
}
3608
3612
0 commit comments