mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-08 16:00:16 +00:00
Fixed #1360 Precedence of increment/decrement operations
This commit is contained in:
Binary file not shown.
@@ -25,5 +25,6 @@ program
|
||||
#include "tests/TestTryCatchLoopBreakLevel2.script.asasm"
|
||||
#include "tests/TestSlots.script.asasm"
|
||||
#include "tests/TestSlots.init/inline_method.method.asasm"
|
||||
#include "tests/TestDecrementPrecedence.script.asasm"
|
||||
; place to add next
|
||||
end ; program
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
class
|
||||
refid "tests:TestDecrementPrecedence"
|
||||
instance QName(PackageNamespace("tests"), "TestDecrementPrecedence")
|
||||
extends QName(PackageNamespace(""), "Object")
|
||||
flag SEALED
|
||||
flag PROTECTEDNS
|
||||
protectedns ProtectedNamespace("tests:TestDecrementPrecedence")
|
||||
iinit
|
||||
refid "tests:TestDecrementPrecedence/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:TestDecrementPrecedence/instance/run"
|
||||
returns QName(PackageNamespace(""), "void")
|
||||
body
|
||||
maxstack 2
|
||||
localcount 4
|
||||
initscopedepth 4
|
||||
maxscopedepth 5
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
pushbyte 10
|
||||
setlocal2
|
||||
pushbyte 5
|
||||
setlocal1
|
||||
|
||||
|
||||
getlocal2
|
||||
pushbyte 1
|
||||
getlocal1
|
||||
lshift
|
||||
decrement
|
||||
bitand
|
||||
setlocal 3
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
end ; trait
|
||||
end ; instance
|
||||
cinit
|
||||
refid "tests:TestDecrementPrecedence/class/init"
|
||||
body
|
||||
maxstack 1
|
||||
localcount 1
|
||||
initscopedepth 3
|
||||
maxscopedepth 4
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
end ; class
|
||||
@@ -0,0 +1,29 @@
|
||||
script
|
||||
sinit
|
||||
refid "tests:TestDecrementPrecedence/init"
|
||||
body
|
||||
maxstack 2
|
||||
localcount 1
|
||||
initscopedepth 1
|
||||
maxscopedepth 3
|
||||
code
|
||||
getlocal0
|
||||
pushscope
|
||||
|
||||
findpropstrict Multiname("TestDecrementPrecedence", [PackageNamespace("tests")])
|
||||
getlex QName(PackageNamespace(""), "Object")
|
||||
pushscope
|
||||
|
||||
getlex Multiname("Object", [PrivateNamespace(null, "tests:TestDecrementPrecedence"), PackageNamespace(""), PackageNamespace("tests"), PackageInternalNs("tests"), Namespace("http://adobe.com/AS3/2006/builtin")])
|
||||
newclass "tests:TestDecrementPrecedence"
|
||||
popscope
|
||||
initproperty QName(PackageNamespace("tests"), "TestDecrementPrecedence")
|
||||
|
||||
returnvoid
|
||||
end ; code
|
||||
end ; body
|
||||
end ; method
|
||||
trait class QName(PackageNamespace("tests"), "TestDecrementPrecedence")
|
||||
#include "TestDecrementPrecedence.class.asasm"
|
||||
end ; trait
|
||||
end ; script
|
||||
Binary file not shown.
Reference in New Issue
Block a user