[jlox] experiment with stackless exception for Return

This commit is contained in:
ctsk
2022-09-10 21:17:15 +02:00
parent 12b0d6d0db
commit 1971ccef45

View File

@@ -7,4 +7,11 @@ public class Return extends RuntimeException {
super(null, null, false, false); super(null, null, false, false);
this.value = value; this.value = value;
} }
/* Potentially much faster function calls
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
*/
} }