diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-03-23 15:09:33 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-03-23 15:09:33 +0000 |
commit | f0a0e0cbe6e24743399134c61bdefa79f5d2c515 (patch) | |
tree | 451b7322993a945b8a9ab4ba0f05776d5b00cf0c /src/compiler | |
parent | f0fb641bf6771b2050b08a7533d4aecf8b15dc72 (diff) | |
download | scala-f0a0e0cbe6e24743399134c61bdefa79f5d2c515.tar.gz scala-f0a0e0cbe6e24743399134c61bdefa79f5d2c515.tar.bz2 scala-f0a0e0cbe6e24743399134c61bdefa79f5d2c515.zip |
Fixed stupid comparison warning.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/GenICode.scala | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala index 0dab705502..bfb09d1091 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala @@ -392,13 +392,6 @@ abstract class GenICode extends SubComponent { log("Adding label " + tree.symbol); } -// if (!isTailCallLabel(tree.asInstanceOf[LabelDef], ctx)) { -// log("Non-tail call label found (" + tree.symbol + "), initializing arguments to default values."); -// genLoadLabelArguments(params map { p => zeroOf(toTypeKind(p.symbol.tpe)) }, -// ctx1.labels(tree.symbol), -// ctx); -// } - ctx.bb.emit(JUMP(ctx1.bb), tree.pos) ctx.bb.close genLoad(rhs, ctx1, expectedType /*toTypeKind(tree.symbol.info.resultType)*/) @@ -1608,16 +1601,6 @@ abstract class GenICode extends SubComponent { kinds reduceLeft maxType } - /** Check weather a given label definition is introduced by the tail call phase - * It is considered to be so if all value parameters of the label are the - * same as the value parameters of the current method. - */ - def isTailCallLabel(tree: LabelDef, ctx: Context) = ( - tree.params.length == ctx.defdef.vparamss.head && - List.forall2(tree.params, ctx.defdef.vparamss.head) - { (x, y) => x.symbol == y.symbol } - ); - def isLoopHeaderLabel(name: Name): Boolean = name.startsWith("while$") || name.startsWith("doWhile$") |