mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-16 01:09:30 +00:00
as3 execute: verify code before executing
This commit is contained in:
@@ -665,6 +665,10 @@ public class AVM2Code implements Cloneable {
|
||||
lda.localRegisters = arguments;
|
||||
lda.runtime = runtime;
|
||||
lda.runtimeVersion = runtimeVersoin;
|
||||
for (AVM2Instruction ins : code) {
|
||||
ins.definition.verify(lda, constants, ins);
|
||||
}
|
||||
|
||||
while (pos < code.size()) {
|
||||
AVM2Instruction ins = code.get(pos);
|
||||
if (!ins.definition.execute(lda, constants, ins)) {
|
||||
|
||||
Reference in New Issue
Block a user