Commit Graph

398 Commits

Author SHA1 Message Date
Jindra Petřík
6f19d50572 added air as3 test
as3 decompile tests moved to special directory
2021-02-08 20:15:19 +01:00
Jindra Petřík
866c32be83 not inlining setlocal..getlocal, better increment/decrement property support 2021-02-08 20:15:19 +01:00
Jindra Petřík
e7e3ed3e5c fixed assembly generator 2021-02-08 20:15:19 +01:00
Jindra Petřík
a0022ff3b1 AS3 allow exception start/end to not match instruction boundary 2021-02-08 20:15:19 +01:00
Jindra Petřík
26b51d2e95 renamed new as3 test swfs to have as3 prefix and unique SWF name 2021-02-08 20:15:19 +01:00
Jindra Petřík
347648c77e improved local register usage detection / try..catch..finally 2021-02-08 20:15:19 +01:00
Jindra Petřík
f6744eafb9 Fixed: Try..catch.finally vs loops 2021-02-08 20:15:19 +01:00
Jindra Petřík
8878940754 Fixed: Dot parent operator not detected in some cases 2021-02-08 20:15:19 +01:00
Jindra Petřík
8de1230bf9 Precontinue detector handles do..while properly. 2021-02-08 20:15:19 +01:00
Jindra Petřík
d03c64d43d Fixed and+dowhile on ASC2 - precontinue can use stack. 2021-02-08 20:15:19 +01:00
Jindra Petřík
0a7f39b82c Improved tests.
Fixed try..catch..finally.
2021-02-08 20:15:19 +01:00
Jindra Petřík
420f84d155 better try..catch..finally detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
f738e3b22b correct continue in if handling,
move continue down if possible (invert expression of if when needed)
2021-02-08 20:15:19 +01:00
Jindra Petřík
179f2a7602 add §§push if something left on stack before ExitItem (return, throw) 2021-02-08 20:15:19 +01:00
Jindra Petřík
6aad6052b3 DataProvider in tests for ASC2 compiled SWF 2021-02-08 20:15:19 +01:00
Jindra Petřík
0eff854a49 removed TestDup
flex vs asc2 compiled tests
2021-02-08 20:15:19 +01:00
Jindra Petřík
c6b1e528df update license header year 2021-02-08 20:15:19 +01:00
Jindra Petřík
2767f77a66 remove unused imports 2021-02-08 20:15:19 +01:00
Jindra Petřík
bfe0fce888 new for loop continues detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
47e6737422 AS3 instruction name padding is optional (can be enabled in settings/scripts)
as it may be hard to search an instruction with spaces behind it
2021-02-08 20:15:19 +01:00
Jindra Petřík
31d63eb2b3 Fixed #1206 Switch with multiple default clauses
Fixed switch(null) in some cases
2021-02-08 20:15:19 +01:00
Jindra Petřík
a6c41ec269 Fixed build 2021-02-08 20:15:19 +01:00
Jindra Petřík
2bebbfad0b fixed some dup problems 2021-02-08 20:15:19 +01:00
Jindra Petřík
97c325eb20 updated tests 2021-02-08 20:15:19 +01:00
Jindra Petřík
ae026983de AS3 assembly testdata template generator 2021-02-08 20:15:19 +01:00
Jindra Petřík
98c2b1eba9 AS3 p-code more RAbcDasm like
- get/setlocal_x renamed to get/setlocalx
- QName casing changed from Qname

Better increment/decrement detection, chained assignments.
2021-02-08 20:15:19 +01:00
Jindra Petřík
4c4d173798 AS3 p-code more RAbcDasm like: commas in parameters list (WARNING: Breaks backward compatibility) 2021-02-08 20:15:19 +01:00
Jindra Petřík
21068f98a7 Fix tests 2021-02-08 20:15:19 +01:00
Jindra Petřík
7f6181360f AS3 p-code more RAbcDasm like (parenthesis after True/False/Undefined/Null trait kinds)
AS3 method trait p-code indentation
AS3 editation of body traits (slot/const only)
2021-02-08 20:15:19 +01:00
Jindra Petřík
ddd2d5697b return in try 2021-02-08 20:15:19 +01:00
Jindra Petřík
ada687db7a Updated tests 2021-02-08 20:15:19 +01:00
Jindra Petřík
0a60be9246 Support for comma operator in switch case statements 2021-02-08 20:15:19 +01:00
Jindra Petřík
3f2e075ee9 Fixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
c5f992b675 Fixed goto/for detectionFixed goto/for detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
6a94a5c274 AS3 - more tests, added classes tests back 2021-02-08 20:15:19 +01:00
Jindra Petřík
054b0dc9f7 goto detection... still does not work 2021-02-08 20:15:19 +01:00
Jindra Petřík
5d7924fa2c reverting the change about for loops / goto detection :-(
it does not work as intended
2021-02-08 20:15:19 +01:00
Jindra Petřík
15e69bbf75 AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop 2021-02-08 20:15:19 +01:00
Jindra Petřík
da1423a254 New test classes for fors, updated AS3Generator for tests 2021-02-08 20:15:19 +01:00
Jindra Petřík
cade4549fb AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope 2021-02-08 20:15:19 +01:00
Jindra Petřík
5a68dc63b6 fixed tests, removed jacoco 2021-01-01 01:07:47 +01:00
Jindra Petřík
f48c92df27 AS1/2 Delete operator with nonIdentifier parameters (e.g. spaces or obfuscated) 2018-05-27 22:42:26 +02:00
Jindra Petřík
f61772c8f7 For in break detection with inner switch statement 2018-05-27 22:10:54 +02:00
Jindra Petřík
d138c61072 - AS1 slash syntax support (decompilation, direct editation)
- AS1/2 Using eval, set functions on obfuscated names instead of §§ syntax where applicable
2018-05-27 16:52:55 +02:00
Jindra Petřík
6ec124f71a Fixed using temporary registers after for..in (causing §§pop instructions, etc.) 2018-05-27 10:49:42 +02:00
Jindra Petřík
811f7a3b77 Better continue in for / goto detection. 2018-05-26 18:37:25 +02:00
Jindra Petřík
a7f457ad9d AS1/2: break on the end of for..in loop 2018-01-30 07:39:16 +01:00
Jindra Petřík
eca98106d2 AS1/2: Properly handling of Flash7 scripts exported to Flash5/6 - ActionDefineFunction local registers 2018-01-29 22:13:59 +01:00
Jindra Petřík
da3cf1454c AS1/2 Try..catch with error types support - decompilation and direct editation 2018-01-28 16:08:20 +01:00
Jindra Petřík
d898ec2076 AS1/2 switch detection - better handling position of default branch 2018-01-28 12:03:10 +01:00