Files
Jindra Petřík 5f077bd505 Fixed: AS3 direct editation - proper use conver/coerce instruction
Fixed: AS3 direct editation - use coerce_f for float values
2026-03-04 20:18:02 +01:00

132 lines
3.3 KiB
ActionScript

package tests
{
public class TestTernarOperator2
{
method
name ""
returns null
body
maxstack 1
localcount 1
initscopedepth 3
maxscopedepth 4
code
getlocal0
pushscope
returnvoid
end ; code
end ; body
end ; method
public function TestTernarOperator2()
{
method
name "tests:TestTernarOperator2/TestTernarOperator2"
returns null
body
maxstack 1
localcount 1
initscopedepth 4
maxscopedepth 5
code
getlocal0
pushscope
getlocal0
constructsuper 0
returnvoid
end ; code
end ; body
end ; method
}
public function run() : *
{
trait method QName(PackageNamespace(""),"run")
dispid 0
method
name "tests:TestTernarOperator2/run"
returns null
body
maxstack 2
localcount 5
initscopedepth 4
maxscopedepth 5
code
getlocal0
pushscope
debug 1, "b", 0, 13
debug 1, "i", 1, 14
debug 1, "j", 2, 15
debug 1, "k", 3, 16
pushtrue
convert_b
setlocal1
pushbyte 1
convert_i
setlocal2
getlocal1
iffalse ofs0027
getlocal2
jump ofs002c
ofs0027:
getlocal2
pushbyte 1
add
convert_i
ofs002c:
convert_i
setlocal3
getlocal2
convert_b
iffalse ofs0039
getlocal3
jump ofs003e
ofs0039:
getlocal3
pushbyte 1
add
convert_i
ofs003e:
convert_i
setlocal 4
returnvoid
end ; code
end ; body
end ; method
}
}
}
method
name ""
returns null
body
maxstack 2
localcount 1
initscopedepth 1
maxscopedepth 3
code
getlocal0
pushscope
findpropstrict Multiname("TestTernarOperator2",[PackageNamespace("tests")])
getlex QName(PackageNamespace(""),"Object")
pushscope
getlex QName(PackageNamespace(""),"Object")
newclass 0
popscope
initproperty QName(PackageNamespace("tests"),"TestTernarOperator2")
returnvoid
end ; code
end ; body
end ; method