TODO removed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user