=str simple signatures of methods having combineMat parameter + optimize ComposeReversed

Now all the `asInstanceOf` occurrences are bundled in a single place
(ComposeOp.apply and Transform.apply).
This commit is contained in:
Johannes Rudolph 2017-03-09 15:43:21 +01:00
parent c8097e4876
commit c1dfee64ae
5 changed files with 56 additions and 39 deletions

View file

@ -463,15 +463,15 @@ case class PhasedFusingActorMaterializer(
case PushNotUsed
matValueStack.addLast(NotUsed)
if (Debug) println(s"PUSH: NotUsed => $matValueStack")
case Transform(f)
case transform: Transform
val prev = matValueStack.removeLast()
val result = f(prev)
val result = transform(prev)
matValueStack.addLast(result)
if (Debug) println(s"TRFM: $matValueStack")
case Compose(f)
case compose: ComposeOp
val second = matValueStack.removeLast()
val first = matValueStack.removeLast()
val result = f(first, second)
val result = compose(first, second)
matValueStack.addLast(result)
if (Debug) println(s"COMP: $matValueStack")
case PushAttributes(attr)