306307308309310311312313314315316
Target tostart = code.getTarget(); if (_start != null) { _start.compile(context, Node.GET_BOOLEAN); Source istrue = code.if_ne(); handler.callFinally(); handler.jumpOut(); istrue.bind(); } if (_statement != null) { _statement.compile(context); }
319320321322323324325326327328329
code.if_ne(tostart); } handler.endTry(); if (_statement == null || !_statement.isBlocked()) { handler.callFinally(); handler.jumpOut(); } handler.endProtectedRegion(); handler.startCatch(0); int thrown = code.addLocal();
110111112113114115116117118119120
_statement.compile(context); } handler.endTry(); if (!_statement.isBlocked()) { handler.callFinally(); handler.jumpOut(); } handler.endProtectedRegion(); handler.startCatch(0); int thrown = code.addLocal(); code.astore(thrown);
164165166167168169170171172173174
_statement.compile(context); } handler.endTry(); if (!_statement.isBlocked()) { handler.callFinally(); handler.jumpOut(); } // catch if (_catches > 0) { handler.startCatch(code.getPool().addClass("anvil/script/ScriptException"));