mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 21:38:26 +00:00
spelling: instruction
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Jindra Petřík
parent
0ff0df4729
commit
b25882909a
@@ -244,12 +244,12 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter {
|
||||
executeActions(actionItem, localData, cPool, result, fakeFunctions, useVariables, first);
|
||||
|
||||
if (result.item != null && result.resultValue == null) {
|
||||
int newIstructionCount = 1 /*jump */ + result.stack.size();
|
||||
int newInstructionCount = 1 /*jump */ + result.stack.size();
|
||||
if (result.constantPool != null) {
|
||||
newIstructionCount++;
|
||||
newInstructionCount++;
|
||||
}
|
||||
|
||||
newIstructionCount += 3 * result.variables.size();
|
||||
newInstructionCount += 3 * result.variables.size();
|
||||
/* 2x Push + Set or Define */
|
||||
|
||||
boolean allValueValid = true;
|
||||
@@ -260,13 +260,13 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
if (allValueValid && newIstructionCount < result.maxSkippedInstructions) {
|
||||
if (allValueValid && newInstructionCount < result.maxSkippedInstructions) {
|
||||
int unreachableCount = result.minSkippedInstructions;
|
||||
if (newIstructionCount >= result.minSkippedInstructions) {
|
||||
if (newInstructionCount >= result.minSkippedInstructions) {
|
||||
unreachableCount = actions.getUnreachableActionCount(actionItem, result.item);
|
||||
}
|
||||
|
||||
if (newIstructionCount < unreachableCount) {
|
||||
if (newInstructionCount < unreachableCount) {
|
||||
if (result.stack.isEmpty() && result.variables.isEmpty() && result.constantPool == null && actionItem.action instanceof ActionJump) {
|
||||
actionItem.setJumpTarget(result.item);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user