mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 03:11:12 +00:00
Fixed: #2493 Incorrect placement of §§push instructions
This commit is contained in:
Binary file not shown.
@@ -39,5 +39,6 @@ program
|
||||
#include "tests/TestGoto2.script.asasm"
|
||||
#include "tests/TestAlwaysBreak.script.asasm"
|
||||
#include "tests/TestAlwaysBreak2.script.asasm"
|
||||
#include "tests/TestPushPlacement.script.asasm"
|
||||
; place to add next
|
||||
end ; program
|
||||
|
||||
87
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushPlacement.class.asasm
vendored
Normal file
87
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushPlacement.class.asasm
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
class
|
||||
refid "tests:TestPushPlacement"
|
||||
instance QName(PackageNamespace("tests"), "TestPushPlacement")
|
||||
extends QName(PackageNamespace(""), "Object")
|
||||
flag SEALED
|
||||
flag PROTECTEDNS
|
||||
protectedns ProtectedNamespace("tests:TestPushPlacement")
|
||||
iinit
|
||||
refid "tests:TestPushPlacement/instance/init"
|
||||
body
|
||||
maxstack 1
|
||||
localcount 1
|
||||
initscopedepth 4
|
||||
maxscopedepth 5
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
getlocal0
|
||||
constructsuper 0
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
trait method QName(PackageNamespace(""), "run")
|
||||
method
|
||||
refid "tests:TestPushPlacement/instance/run"
|
||||
returns QName(PackageNamespace(""), "void")
|
||||
body
|
||||
maxstack 2
|
||||
localcount 4
|
||||
initscopedepth 4
|
||||
maxscopedepth 5
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
debug 1, "a", 0, 13
|
||||
debug 1, "b", 1, 14
|
||||
pushbyte 1
|
||||
convert_i
|
||||
setlocal1
|
||||
pushbyte 2
|
||||
coerce_a
|
||||
setlocal2
|
||||
getlocal1
|
||||
getlocal1
|
||||
pushbyte 1
|
||||
add
|
||||
convert_i
|
||||
setlocal1
|
||||
getlocal2
|
||||
pushbyte 2
|
||||
ifnge ofs0031
|
||||
pushbyte 7
|
||||
add
|
||||
coerce_a
|
||||
setlocal2
|
||||
findpropstrict QName(PackageNamespace(""),"trace")
|
||||
getlocal2
|
||||
callpropvoid QName(PackageNamespace(""),"trace"), 1
|
||||
jump ofs0032
|
||||
ofs0031:
|
||||
pop
|
||||
ofs0032:
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
end ; trait
|
||||
end ; instance
|
||||
cinit
|
||||
refid "tests:TestPushPlacement/class/init"
|
||||
body
|
||||
maxstack 1
|
||||
localcount 1
|
||||
initscopedepth 3
|
||||
maxscopedepth 4
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
end ; class
|
||||
29
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushPlacement.script.asasm
vendored
Normal file
29
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushPlacement.script.asasm
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
script
|
||||
sinit
|
||||
refid "tests:TestPushPlacement/init"
|
||||
body
|
||||
maxstack 2
|
||||
localcount 1
|
||||
initscopedepth 1
|
||||
maxscopedepth 3
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
findpropstrict Multiname("TestPushPlacement", [PackageNamespace("tests")])
|
||||
getlex QName(PackageNamespace(""), "Object")
|
||||
pushscope
|
||||
|
||||
getlex Multiname("Object", [PrivateNamespace(null, "tests:TestPushPlacement"), PackageNamespace(""), PackageNamespace("tests"), PackageInternalNs("tests"), Namespace("http://adobe.com/AS3/2006/builtin")])
|
||||
newclass "tests:TestPushPlacement"
|
||||
popscope
|
||||
initproperty QName(PackageNamespace("tests"), "TestPushPlacement")
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
trait class QName(PackageNamespace("tests"), "TestPushPlacement")
|
||||
#include "TestPushPlacement.class.asasm"
|
||||
end ; trait
|
||||
end ; script
|
||||
Binary file not shown.
Reference in New Issue
Block a user