From 179f2a76022fe8443622b73bfbb18e0ec843d8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 29 Jan 2021 11:07:03 +0100 Subject: [PATCH] =?UTF-8?q?add=20=C2=A7=C2=A7push=20if=20something=20left?= =?UTF-8?q?=20on=20stack=20before=20ExitItem=20(return,=20throw)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java | 5 +++-- .../test/com/jpexs/decompiler/flash/ActionScript3Test.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index e49f5812c..6e37fb355 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.graph; import com.jpexs.decompiler.flash.BaseLocalData; @@ -533,10 +534,10 @@ public class Graph { lastUsage.get(labelName).labelName = null; } } - expandGotos(ret); processIfs(ret); finalProcessStack(stack, ret, path); + makeAllCommands(ret, stack); finalProcessAll(ret, 0, getFinalData(localData, loops), path); return ret; } diff --git a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java index a03f64894..9c6bee680 100644 --- a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java +++ b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java @@ -148,7 +148,7 @@ public class ActionScript3Test extends ActionScriptTestBase { private Object[][] standardSwfNamesProvider() { return new Object[][]{ {"standard"}, - {"standard_asc2"} + //{"standard_asc2"} }; }