summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-02-12 09:17:05 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-02-12 09:17:05 +0000
commit38522bbe95a7b3ad3ec6b723e79ba94d2dfe905f (patch)
treeeffd1981d7d4b8c84f04d2d6b1846aac0ea66727
parentc96ed0ccb8f2318cd6f3dd2565e9503975889a8e (diff)
downloadscala-38522bbe95a7b3ad3ec6b723e79ba94d2dfe905f.tar.gz
scala-38522bbe95a7b3ad3ec6b723e79ba94d2dfe905f.tar.bz2
scala-38522bbe95a7b3ad3ec6b723e79ba94d2dfe905f.zip
Fixed crash in resident mode
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/GenICode.scala7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
index 6b1a2024f1..eb4da57556 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
@@ -69,9 +69,6 @@ abstract class GenICode extends SubComponent {
ctx1
}
- /** The maximum line number seen so far in the current method. */
- private var maxLineNr = 0
-
/////////////////// Code generation ///////////////////////
def gen(tree: Tree, ctx: Context): Context = tree match {
@@ -103,7 +100,6 @@ abstract class GenICode extends SubComponent {
m.returnType = if (tree.symbol.isConstructor) UNIT
else toTypeKind(tree.symbol.info.resultType)
ctx.clazz.addMethod(m)
- maxLineNr = unit.position(tree.pos).line
var ctx1 = ctx.enterMethod(m, tree.asInstanceOf[DefDef])
addMethodParams(ctx1, vparamss)
@@ -157,7 +153,6 @@ abstract class GenICode extends SubComponent {
* which may change the current basic block.
*/
private def genStat(tree: Tree, ctx: Context): Context = {
- maxLineNr = compat.Math.max(unit.position(tree.pos).line, maxLineNr)
tree match {
case Assign(lhs @ Select(_, _), rhs) =>
@@ -197,7 +192,6 @@ abstract class GenICode extends SubComponent {
*/
private def genLoad(tree: Tree, ctx: Context, expectedType: TypeKind): Context = {
var generatedType = expectedType
- maxLineNr = compat.Math.max(unit.position(tree.pos).line, maxLineNr)
/**
* Generate code for primitive arithmetic operations.
@@ -1724,7 +1718,6 @@ abstract class GenICode extends SubComponent {
ctx1.method.code = new Code(m.symbol.simpleName.toString())
ctx1.bb = ctx1.method.code.startBlock
ctx1.defdef = d
-// assert(ctx1.scope == EmptyScope, ctx1.scope)
ctx1.scope = EmptyScope
ctx1.enterScope
ctx1