mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 07:16:08 +00:00
perf: optimize recursion, avoid stackoverflow on larger scripts (#2672)
This commit is contained in:
BIN
libsrc/ffdec_lib/testdata/as3_long/bin/as3_long.air.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_long/bin/as3_long.air.swf
vendored
Normal file
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as3_long/bin/as3_long.flex.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_long/bin/as3_long.flex.swf
vendored
Normal file
Binary file not shown.
7
libsrc/ffdec_lib/testdata/as3_long/build_air_debug.bat
vendored
Normal file
7
libsrc/ffdec_lib/testdata/as3_long/build_air_debug.bat
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set COMPILERKIND=air
|
||||
set SWFNAME=as3_long
|
||||
call c:\air\bin\mxmlc.bat -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem set COMPILERKIND=air.optimize
|
||||
rem call c:\air\bin\mxmlc.bat -compiler.optimize -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem -warnings=false
|
||||
3
libsrc/ffdec_lib/testdata/as3_long/build_both_debug.bat
vendored
Normal file
3
libsrc/ffdec_lib/testdata/as3_long/build_both_debug.bat
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call build_flex_debug.bat
|
||||
call build_air_debug.bat
|
||||
7
libsrc/ffdec_lib/testdata/as3_long/build_flex_debug.bat
vendored
Normal file
7
libsrc/ffdec_lib/testdata/as3_long/build_flex_debug.bat
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set COMPILERKIND=flex
|
||||
set SWFNAME=as3_long
|
||||
call c:\flex\bin\mxmlc.bat -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem set COMPILERKIND=flex.optimize
|
||||
rem call c:\flex\bin\mxmlc.bat -compiler.optimize -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem -warnings=false
|
||||
28
libsrc/ffdec_lib/testdata/as3_long/src/Main.as
vendored
Normal file
28
libsrc/ffdec_lib/testdata/as3_long/src/Main.as
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import tests.*;
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class Main extends Sprite
|
||||
{
|
||||
TestLongScript;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
// entry point
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
10013
libsrc/ffdec_lib/testdata/as3_long/src/tests/TestLongScript.as
vendored
Normal file
10013
libsrc/ffdec_lib/testdata/as3_long/src/tests/TestLongScript.as
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user