mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 00:57:04 +00:00
Fixed: AS decompilation - §§push before loop
This commit is contained in:
Binary file not shown.
@@ -28,5 +28,6 @@ program
|
||||
#include "tests/TestDecrementPrecedence.script.asasm"
|
||||
#include "tests/TestSwitchGoto.script.asasm"
|
||||
#include "tests/TestTryWhile.script.asasm"
|
||||
#include "tests/TestPushWhile.script.asasm"
|
||||
; place to add next
|
||||
end ; program
|
||||
|
||||
99
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushWhile.class.asasm
vendored
Normal file
99
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushWhile.class.asasm
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
class
|
||||
refid "tests:TestPushWhile"
|
||||
instance QName(PackageNamespace("tests"), "TestPushWhile")
|
||||
extends QName(PackageNamespace(""), "Object")
|
||||
flag SEALED
|
||||
flag PROTECTEDNS
|
||||
protectedns ProtectedNamespace("tests:TestPushWhile")
|
||||
iinit
|
||||
refid "tests:TestPushWhile/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:TestPushWhile/instance/run"
|
||||
returns QName(PackageNamespace(""), "void")
|
||||
body
|
||||
maxstack 2
|
||||
localcount 4
|
||||
initscopedepth 4
|
||||
maxscopedepth 5
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
pushbyte 5
|
||||
setlocal 3
|
||||
|
||||
pushstring "ByteArray"
|
||||
dup
|
||||
findpropstrict MultinameL([PackageNamespace("flash.utils","1")])
|
||||
swap
|
||||
constructprop MultinameL([PackageNamespace("flash.utils","1")]), 0
|
||||
dup
|
||||
getlex QName(PackageNamespace("","2"),"obfuscated")
|
||||
swap
|
||||
pushstring "xxx"
|
||||
swap
|
||||
setproperty MultinameL([PackageNamespace("","2")])
|
||||
pushint 50
|
||||
ofs0016:
|
||||
label
|
||||
dup
|
||||
iffalse ofs0039
|
||||
decrement_i
|
||||
swap
|
||||
dup
|
||||
dup
|
||||
getproperty QName(PackageNamespace("","2"),"length")
|
||||
pushbyte 41
|
||||
pushbyte 111
|
||||
bitxor
|
||||
setproperty MultinameL([PackageNamespace("","2")])
|
||||
dup
|
||||
dup
|
||||
getproperty QName(PackageNamespace("","2"),"length")
|
||||
pushbyte 9
|
||||
pushbyte 84
|
||||
bitxor
|
||||
setproperty MultinameL([PackageNamespace("","2")])
|
||||
swap
|
||||
jump ofs0016
|
||||
ofs0039:
|
||||
pop
|
||||
pop
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
end ; trait
|
||||
end ; instance
|
||||
cinit
|
||||
refid "tests:TestPushWhile/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/TestPushWhile.script.asasm
vendored
Normal file
29
libsrc/ffdec_lib/testdata/as3_assembled/abc/as3_assembled-0/tests/TestPushWhile.script.asasm
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
script
|
||||
sinit
|
||||
refid "tests:TestPushWhile/init"
|
||||
body
|
||||
maxstack 2
|
||||
localcount 1
|
||||
initscopedepth 1
|
||||
maxscopedepth 3
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
findpropstrict Multiname("TestPushWhile", [PackageNamespace("tests")])
|
||||
getlex QName(PackageNamespace(""), "Object")
|
||||
pushscope
|
||||
|
||||
getlex Multiname("Object", [PrivateNamespace(null, "tests:TestPushWhile"), PackageNamespace(""), PackageNamespace("tests"), PackageInternalNs("tests"), Namespace("http://adobe.com/AS3/2006/builtin")])
|
||||
newclass "tests:TestPushWhile"
|
||||
popscope
|
||||
initproperty QName(PackageNamespace("tests"), "TestPushWhile")
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
trait class QName(PackageNamespace("tests"), "TestPushWhile")
|
||||
#include "TestPushWhile.class.asasm"
|
||||
end ; trait
|
||||
end ; script
|
||||
Binary file not shown.
Reference in New Issue
Block a user