TODO removed

This commit is contained in:
Andrey Breslav
2013-10-07 01:45:51 +04:00
parent 00fd00e09b
commit 2e8ae6b7db
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -359,7 +359,6 @@ class SingleInstructionInterpreter(private val eval: Eval) : Interpreter<Value>(
override fun returnOperation(insn: AbstractInsnNode, value: Value, expected: Value) { override fun returnOperation(insn: AbstractInsnNode, value: Value, expected: Value) {
when (insn.getOpcode()) { when (insn.getOpcode()) {
IRETURN, LRETURN, FRETURN, DRETURN, ARETURN -> { IRETURN, LRETURN, FRETURN, DRETURN, ARETURN -> {
// TODO: coercion, maybe?
// Handled by interpreter loop // Handled by interpreter loop
} }
@@ -168,7 +168,6 @@ fun interpreterLoop(
frame.execute(currentInsn, interpreter) frame.execute(currentInsn, interpreter)
} }
catch (e: ThrownFromEvalException) { catch (e: ThrownFromEvalException) {
// TODO: try/catch.finaly
val handled = handler.exceptionThrown(frame, currentInsn, e.exception) val handled = handler.exceptionThrown(frame, currentInsn, e.exception)
if (handled != null) return handled if (handled != null) return handled
if (exceptionCaught(e.exception)) continue if (exceptionCaught(e.exception)) continue