diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-04-24 14:20:48 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-04-24 14:20:48 +0000 |
commit | 78d3bf33640987c825fa97f11f19919b1bca6dde (patch) | |
tree | 657635d08b672096f134c5fd8fca3c978647a6f0 | |
parent | ce72df2c020f0310dec9bacc992a94d492d48e3b (diff) | |
download | scala-78d3bf33640987c825fa97f11f19919b1bca6dde.tar.gz scala-78d3bf33640987c825fa97f11f19919b1bca6dde.tar.bz2 scala-78d3bf33640987c825fa97f11f19919b1bca6dde.zip |
tiny change to produced/consumed for CALL_METHOD
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala b/src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala index ccd33807f6..d2a4e38ff2 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala @@ -227,7 +227,8 @@ trait Opcodes requires ICodes { result = result + (style match { case Dynamic => 1 case Static(true) => 1 - case _ => 0 + case Static(false) => 0 + case SuperCall(_) => 0 }); result; @@ -235,7 +236,9 @@ trait Opcodes requires ICodes { override def produced = if(toTypeKind(method.tpe.resultType) == UNIT) 0 - else 1 + else if(method.isConstructor) + 0 + else 1 } /** Create a new instance of a class through the specified constructor |