summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-02-09 15:54:15 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-02-09 15:54:15 +0000
commit107e2e6a5b0f1e7426313a4fe7050c7b7587e804 (patch)
treec7c71f6c8ede7b39139ce2edbbd54cd728e1ec1c
parent176e869db311234d1ef0d06a35d75456805c01a5 (diff)
downloadscala-107e2e6a5b0f1e7426313a4fe7050c7b7587e804.tar.gz
scala-107e2e6a5b0f1e7426313a4fe7050c7b7587e804.tar.bz2
scala-107e2e6a5b0f1e7426313a4fe7050c7b7587e804.zip
Forgot to remove some useless code.
-rw-r--r--src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
index 7e76c18ff0..d1491ff335 100644
--- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
+++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
@@ -659,9 +659,6 @@ abstract class GenJVM extends SubComponent {
}
def assert(cond: Boolean, msg: String) = if (!cond) throw new CompilationError(msg);
- if (b.lastInstruction == instr)
- endPC(b) = jcode.getPC();
-
instr match {
case THIS(clasz) =>
jcode.emitALOAD_0()
@@ -991,6 +988,9 @@ abstract class GenJVM extends SubComponent {
log("Warning: wrong position in: " + method)
lastLineNr
}
+ if (b.lastInstruction == instr)
+ endPC(b) = jcode.getPC();
+
//System.err.println("CRTLINE: " + instr.pos + " " +
// /* (if (instr.pos < clasz.cunit.source.content.length) clasz.cunit.source.content(instr.pos) else '*') + */ " " + crtLine);
@@ -1176,6 +1176,7 @@ abstract class GenJVM extends SubComponent {
}
}
+ /** For each basic block, the first PC address following it. */
val endPC: HashMap[BasicBlock, Int] = new HashMap()
val labels: HashMap[BasicBlock, JCode$Label] = new HashMap()
val conds: HashMap[TestOp, Int] = new HashMap()
@@ -1420,10 +1421,10 @@ abstract class GenJVM extends SubComponent {
val startPC = 0.asInstanceOf[Short]
var endPC = pc
if (startPC > endPC) {
- Console.println("startPC: " + startPC + " endPC: " + endPC + " start: " + lv.start + " end: " + lv.end)
+// Console.println("startPC: " + startPC + " endPC: " + endPC + " start: " + lv.start + " end: " + lv.end)
endPC = pc
}
- log(lv + " start: " + lv.start + " end: " + lv.end)
+// log(lv + " start: " + lv.start + " end: " + lv.end)
emitEntry(name, javaType(lv.kind).getSignature(),
indexOf(lv).asInstanceOf[Short],